Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/distrib/sun3 Add a release target to automate building relea...
details: https://anonhg.NetBSD.org/src/rev/2e92f068a444
branches: trunk
changeset: 473131:2e92f068a444
user: gwr <gwr%NetBSD.org@localhost>
date: Fri May 21 04:06:20 1999 +0000
description:
Add a release target to automate building release snapshots.
diffstat:
distrib/sun3/Makefile | 15 +++++++++++++--
distrib/sun3/miniroot/Makefile | 12 +++++++++++-
distrib/sun3/ramdisk/Makefile | 23 ++++++++++++++++++-----
3 files changed, 42 insertions(+), 8 deletions(-)
diffs (92 lines):
diff -r 35e03df4d297 -r 2e92f068a444 distrib/sun3/Makefile
--- a/distrib/sun3/Makefile Fri May 21 04:02:02 1999 +0000
+++ b/distrib/sun3/Makefile Fri May 21 04:06:20 1999 +0000
@@ -1,5 +1,16 @@
-# $NetBSD: Makefile,v 1.2 1995/10/12 21:16:53 gwr Exp $
+# $NetBSD: Makefile,v 1.3 1999/05/21 04:06:20 gwr Exp $
+
+SUBDIR= ramdisk miniroot
+TARGETS= all release
-SUBDIR= miniroot ramdisk
+release:
+ -mkdir -p ${RELEASEDIR}/installation/netboot
+ cp -p ${DESTDIR}/usr/mdec/netboot \
+ ${RELEASEDIR}/installation/netboot/
+ -mkdir -p ${RELEASEDIR}/installation/tapeimage
+ cp -p ${DESTDIR}/usr/mdec/tapeboot \
+ ${RELEASEDIR}/installation/tapeimage/
+ cp -p MakeBootTape MakeInstTape \
+ ${RELEASEDIR}/installation/tapeimage/
.include <bsd.subdir.mk>
diff -r 35e03df4d297 -r 2e92f068a444 distrib/sun3/miniroot/Makefile
--- a/distrib/sun3/miniroot/Makefile Fri May 21 04:02:02 1999 +0000
+++ b/distrib/sun3/miniroot/Makefile Fri May 21 04:06:20 1999 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.14 1999/05/16 08:21:53 gwr Exp $
+# $NetBSD: Makefile,v 1.15 1999/05/21 04:06:20 gwr Exp $
TOP= ${.CURDIR}/..
@@ -64,3 +64,13 @@
# Standard rules needed by the above...
.include <bsd.obj.mk>
+
+.if !defined(RELEASEDIR)
+release:
+ @echo setenv RELEASEDIR before doing that!
+ @false
+.else # RELEASEDIR
+release: ${IMAGE}.gz
+ cp -p ${IMAGE}.gz \
+ ${RELEASEDIR}/installation/miniroot/${IMAGE}.gz
+.endif # RELEASEDIR
diff -r 35e03df4d297 -r 2e92f068a444 distrib/sun3/ramdisk/Makefile
--- a/distrib/sun3/ramdisk/Makefile Fri May 21 04:02:02 1999 +0000
+++ b/distrib/sun3/ramdisk/Makefile Fri May 21 04:06:20 1999 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.10 1999/05/18 07:31:56 gwr Exp $
+# $NetBSD: Makefile,v 1.11 1999/05/21 04:06:20 gwr Exp $
TOP= ${.CURDIR}/..
@@ -26,16 +26,17 @@
# bigendian, old format, minfree, opt, b/i trks, sects, cpg
NEWFSARGS= -B be -O -m 0 -o space -i 2048 -t 2 -u 16 -c 16
-CLEANFILES= netbsd-rd.sun3 netbsd-rd.sun3x rdsetroot ${IMAGE}.fs
+KERNELS= netbsd-RAMDISK netbsd-RAMDISK3X
+CLEANFILES= $(KERNELS) rdsetroot ${IMAGE}.fs
-all: netbsd-rd.sun3 netbsd-rd.sun3x
+all: $(KERNELS)
-netbsd-rd.sun3 : rdsetroot ${IMAGE}.fs
+netbsd-RAMDISK : rdsetroot ${IMAGE}.fs
cp ${KERNEL3} netbsd-tmp
./rdsetroot netbsd-tmp < ${IMAGE}.fs
-mv -f netbsd-tmp $@
-netbsd-rd.sun3x : rdsetroot ${IMAGE}.fs
+netbsd-RAMDISK3X : rdsetroot ${IMAGE}.fs
cp ${KERNEL3X} netbsd-tmp
./rdsetroot netbsd-tmp < ${IMAGE}.fs
-mv -f netbsd-tmp $@
@@ -77,3 +78,15 @@
# Standard rules needed by the above...
.include <bsd.obj.mk>
+
+.if !defined(RELEASEDIR)
+release:
+ @echo setenv RELEASEDIR before doing that!
+ @false
+.else # RELEASEDIR
+release: $(KERNELS)
+.for x in ${KERNELS}
+ gzip -c -9 < ${x} > \
+ ${RELEASEDIR}/binary/kernel/${x}.gz
+.endfor # KERNELS
+.endif # RELEASEDIR
Home |
Main Index |
Thread Index |
Old Index