From cbb4d0a8d735f700f26b44b64df952188cf8b269 Mon Sep 17 00:00:00 2001 From: hjp Date: Mon, 19 Mar 2001 08:45:35 +0000 Subject: [PATCH] configure test for location of find with option -printf --- tiny/GNUmakefile | 21 +++++++++++++++++++++ tiny/fnp | 3 --- tiny/fnp.sh | 2 ++ tiny/fnpa | 2 -- tiny/fnpa.sh | 2 ++ tiny/fnpc | 2 -- tiny/fnpc.sh | 2 ++ 7 files changed, 27 insertions(+), 7 deletions(-) delete mode 100755 tiny/fnp create mode 100755 tiny/fnp.sh delete mode 100755 tiny/fnpa create mode 100755 tiny/fnpa.sh delete mode 100755 tiny/fnpc create mode 100755 tiny/fnpc.sh 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"