diff --git a/tiny/GNUmakefile b/tiny/GNUmakefile index 2c4febe..b061943 100644 --- a/tiny/GNUmakefile +++ b/tiny/GNUmakefile @@ -1,4 +1,12 @@ include GNUmakevars + +CONFDIR=../../configure + +all: configure dus fnp fnpa fnpc fqdn isodate psg + +clean: + rm fnp fnpa fnpc customize + install: \ $(BINDIR)/dus \ $(BINDIR)/fnp \ @@ -8,5 +16,18 @@ install: \ $(BINDIR)/isodate \ $(BINDIR)/psg \ +fnp: fnp.sh +fnpa: fnpa.sh +fnpc: fnpc.sh + +%: %.sh customize + sh ./customize < $< > $@ + chmod +x $@ + +customize: configure + sh ./configure + +configure: $(CONFDIR)/start $(CONFDIR)/find-printf $(CONFDIR)/finish + cat $^ > $@ include GNUmakerules diff --git a/tiny/fnp b/tiny/fnp deleted file mode 100755 index bb984e9..0000000 --- a/tiny/fnp +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh -find "$@" -printf "%TY-%Tm-%Td %TH:%TM:%TS %5k %-8u %-8g %m %p\n" - diff --git a/tiny/fnp.sh b/tiny/fnp.sh new file mode 100755 index 0000000..3ecafc1 --- /dev/null +++ b/tiny/fnp.sh @@ -0,0 +1,2 @@ +#!/bin/sh +@@@find@@@ "$@" -printf "%TY-%Tm-%Td %TH:%TM:%TS %5k %-8u %-8g %m %p\t%l\n" diff --git a/tiny/fnpa b/tiny/fnpa deleted file mode 100755 index b3552f6..0000000 --- a/tiny/fnpa +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -find "$@" -printf "%AY-%Am-%Ad %AH:%AM:%AS %5k %-8u %-8g %p\n" diff --git a/tiny/fnpa.sh b/tiny/fnpa.sh new file mode 100755 index 0000000..6875b8e --- /dev/null +++ b/tiny/fnpa.sh @@ -0,0 +1,2 @@ +#!/bin/sh +@@@find@@@ "$@" -printf "%AY-%Am-%Ad %AH:%AM:%AS %5k %-8u %-8g %m %p\t%l\n" diff --git a/tiny/fnpc b/tiny/fnpc deleted file mode 100755 index b56de28..0000000 --- a/tiny/fnpc +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -find "$@" -printf "%CY-%Cm-%Cd %CH:%CM:%CS %5k %-8u %-8g %p\n" diff --git a/tiny/fnpc.sh b/tiny/fnpc.sh new file mode 100755 index 0000000..def6e84 --- /dev/null +++ b/tiny/fnpc.sh @@ -0,0 +1,2 @@ +#!/bin/sh +@@@find@@@ "$@" -printf "%CY-%Cm-%Cd %CH:%CM:%CS %5k %-8u %-8g %m %p\t%l\n"