From b8e45272426c23b937ff6eb7c48a9757e8741dec Mon Sep 17 00:00:00 2001 From: hjp Date: Thu, 26 Jul 2001 08:14:44 +0000 Subject: [PATCH] added save. --- tiny/GNUmakefile | 3 ++- tiny/save | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100755 tiny/save diff --git a/tiny/GNUmakefile b/tiny/GNUmakefile index d8a0c5f..7dd6faf 100644 --- a/tiny/GNUmakefile +++ b/tiny/GNUmakefile @@ -3,7 +3,7 @@ include GNUmakevars CONFDIR=../../configure 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: rm fnp fnpa fnpc customize @@ -16,6 +16,7 @@ install: \ $(BINDIR)/fqdn \ $(BINDIR)/isodate \ $(BINDIR)/psg \ + $(BINDIR)/save \ fnp: fnp.sh fnpa: fnpa.sh diff --git a/tiny/save b/tiny/save new file mode 100755 index 0000000..76cd8cc --- /dev/null +++ b/tiny/save @@ -0,0 +1,5 @@ +#!/bin/sh +for i in "$@" +do + mv "$i" "$i.orig" && cp -p "$i.orig" "$i" +done