summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-05-03 08:06:31 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-05-03 08:06:31 +0000
commitc203880336748b7a230626affd9236e1ce66e6df (patch)
treeecbac92f17e553a1a56c4e93614027dc6ef37cb5
parentde1a68785ee0b15c926f40dafe5fc4053fc48aaf (diff)
release target. This is one monster target
-rw-r--r--etc/Makefile17
1 files changed, 16 insertions, 1 deletions
diff --git a/etc/Makefile b/etc/Makefile
index 1a107751050..1ccc72f9522 100644
--- a/etc/Makefile
+++ b/etc/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.48 1997/05/02 15:34:25 deraadt Exp $
+# $OpenBSD: Makefile,v 1.49 1997/05/03 08:06:30 deraadt Exp $
TZDIR= /usr/share/zoneinfo
LOCALTIME= US/Pacific
@@ -174,6 +174,21 @@ distrib-dirs:
fi
cd ${DESTDIR}; rm -f sys; ln -s usr/src/sys sys
+.ifndef RELEASEDIR
+release:
+ @echo setenv RELEASEDIR before building a release.
+ @false
+.else
+release:
+ cd ${.CURDIR}; ${MAKE} snapshot
+ csh ${.CURDIR}/../distrib/sets/maketars
+ cp ${DESTDIR}/snapshot/bsd ${RELEASEDIR}
+ cp ${DESTDIR}/snapshot/RELEASE.* ${RELEASEDIR}
+ cp ${DESTDIR}/snapshot/*.fs ${RELEASEDIR}
+ cd ${RELEASEDIR}; md5 bsd *gz RELEASE.* *.fs > MD5
+ cd ${RELEASEDIR}; cksum bsd *gz RELEASE.* *.fs > CKSUM
+.endif
+
snapshot: distribution snap_pre snap_tar snap_md
cd ${DESTDIR}/snapshot && cksum * > CKSUMS
cd ${DESTDIR}/snapshot && md5 * > MD5