configure test for location of find with option -printf
This commit is contained in:
parent
0fa08b24ed
commit
cbb4d0a8d7
|
@ -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
|
||||
|
|
3
tiny/fnp
3
tiny/fnp
|
@ -1,3 +0,0 @@
|
|||
#!/bin/sh
|
||||
find "$@" -printf "%TY-%Tm-%Td %TH:%TM:%TS %5k %-8u %-8g %m %p\n"
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
@@@find@@@ "$@" -printf "%TY-%Tm-%Td %TH:%TM:%TS %5k %-8u %-8g %m %p\t%l\n"
|
|
@ -1,2 +0,0 @@
|
|||
#!/bin/sh
|
||||
find "$@" -printf "%AY-%Am-%Ad %AH:%AM:%AS %5k %-8u %-8g %p\n"
|
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
@@@find@@@ "$@" -printf "%AY-%Am-%Ad %AH:%AM:%AS %5k %-8u %-8g %m %p\t%l\n"
|
|
@ -1,2 +0,0 @@
|
|||
#!/bin/sh
|
||||
find "$@" -printf "%CY-%Cm-%Cd %CH:%CM:%CS %5k %-8u %-8g %p\n"
|
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
@@@find@@@ "$@" -printf "%CY-%Cm-%Cd %CH:%CM:%CS %5k %-8u %-8g %m %p\t%l\n"
|
Loading…
Reference in New Issue