aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>1997-10-13 18:56:51 +0000
committerErik Troan <ewt@redhat.com>1997-10-13 18:56:51 +0000
commit829abf2afeae20324bb9786cab40db3172c20e39 (patch)
treec94649f0cbeeef77b0596cb1389125875b9b061b
parent9dd01ff51ac83c62cd61cc062da6e7c1d491b8dd (diff)
downloadinitscripts-829abf2afeae20324bb9786cab40db3172c20e39.tar
initscripts-829abf2afeae20324bb9786cab40db3172c20e39.tar.gz
initscripts-829abf2afeae20324bb9786cab40db3172c20e39.tar.bz2
initscripts-829abf2afeae20324bb9786cab40db3172c20e39.tar.xz
initscripts-829abf2afeae20324bb9786cab40db3172c20e39.zip
added archive rule
-rw-r--r--Makefile16
1 files changed, 14 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 1e000208..0c322dbf 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,8 @@
ROOT=/
+VERSION=3.18
+CVSTAG = r$(subst .,-,$(VERSION))
+
all:
(cd src; make CFLAGS="$(CFLAGS)")
@@ -19,5 +22,14 @@ install:
chown root.root /var/run/netreport
chmod og=rwx,o=rx /var/run/netreport
-clean:
- (cd src; make clean)
+archive:
+ @cvs tag -F $(CVSTAG)
+ @rm -rf /tmp/initscripts-$(VERSION)
+ @mkdir /tmp/initscripts-$(VERSION)
+ @cvs export -r$(CVSTAG) -d /tmp/initscripts-$(VERSION) initscripts
+ @cd /tmp; tar czSpf initscripts-$(VERSION).tar.gz initscripts-$(VERSION)
+ @rm -rf /tmp/initscripts-$(VERSION)
+ @cp /tmp/initscripts-$(VERSION).tar.gz .
+ @rm -f /tmp/initscripts-$(VERSION).tar.gz
+ @echo " "
+ @echo "The final archive is ./initscripts-$(VERSION).tar.gz."