diff options
-rw-r--r-- | Makefile | 7 | ||||
-rwxr-xr-x | inc | 3 |
2 files changed, 5 insertions, 5 deletions
@@ -1,6 +1,3 @@ -install: bin man - -man: +install: install -m 644 *.1 /usr/local/man/man1/ -bin: - ls * | grep -v '\.1$$' | xargs -I{} install {} /usr/local/bin/ + install `ls -l | awk '$$1 ~ /x$$/ {print $$NF}'` /usr/local/bin @@ -0,0 +1,3 @@ +#!/usr/bin/perl -p +# inc -- increment numbers in lines +s/\d+/$n=$& if!$n;$n+$i++/e |