added save.

This commit is contained in:
hjp 2001-07-26 08:14:44 +00:00
parent 0e5c1c441d
commit b8e4527242
2 changed files with 7 additions and 1 deletions

View File

@ -3,7 +3,7 @@ include GNUmakevars
CONFDIR=../../configure CONFDIR=../../configure
CONFDIR_exists=$(shell [ -d $(CONFDIR) ] && echo ok) CONFDIR_exists=$(shell [ -d $(CONFDIR) ] && echo ok)
all: configure dus fnp fnpa fnpc fqdn isodate psg all: configure dus fnp fnpa fnpc fqdn isodate psg save
clean: clean:
rm fnp fnpa fnpc customize rm fnp fnpa fnpc customize
@ -16,6 +16,7 @@ install: \
$(BINDIR)/fqdn \ $(BINDIR)/fqdn \
$(BINDIR)/isodate \ $(BINDIR)/isodate \
$(BINDIR)/psg \ $(BINDIR)/psg \
$(BINDIR)/save \
fnp: fnp.sh fnp: fnp.sh
fnpa: fnpa.sh fnpa: fnpa.sh

5
tiny/save Executable file
View File

@ -0,0 +1,5 @@
#!/bin/sh
for i in "$@"
do
mv "$i" "$i.orig" && cp -p "$i.orig" "$i"
done