aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>1994-11-06 23:47:06 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>1994-11-06 23:47:06 +0000
commitae7d223f92e8814661d2d52e9edc8433a84607ab (patch)
tree473c5fd348434c234f33e7612bd1196edc6c15f7
parent44a88072bdca49fd0b9b9a6e7350a6a89399ff40 (diff)
downloadsrc-ae7d223f92e8814661d2d52e9edc8433a84607ab.tar.gz
src-ae7d223f92e8814661d2d52e9edc8433a84607ab.zip
Add extract-script.
Notes
Notes: svn path=/head/; revision=4219
-rw-r--r--release/Makefile12
-rw-r--r--release/extract.sh4
2 files changed, 11 insertions, 5 deletions
diff --git a/release/Makefile b/release/Makefile
index 9a4e12a1aa21..ff3c6ec2c3b3 100644
--- a/release/Makefile
+++ b/release/Makefile
@@ -1,4 +1,4 @@
-# $Id: Makefile,v 1.18 1994/11/06 04:07:38 jkh Exp $
+# $Id: Makefile,v 1.19 1994/11/06 11:24:58 jkh Exp $
#
#For a 1.2MB boot floppy.
@@ -26,6 +26,7 @@ CPIO1+= ftp rsh sed telnet rlogin
CPIO2= etc/services
+CPIO3= extract.sh
# Somewhat on the rough side...
CLEANFILES+= *.o *.c *.cache *.mk *.lo ${CPIO1} *.flp *.gz
CLEANFILES+= boot_flp boot_${FDLABEL}.flp cpio_flp_1
@@ -89,9 +90,10 @@ boot_${FDLABEL}.flp:
ls -l boot.flp*
cpio.flp:
- ( cd /${DESTDIR} ; ls ${CPIO2} | cpio -H newc -oa ) | cpio -ivd
for i in ${CPIO1} ; do rm -f ./$$i ; ln cpio_flp_1 ./$$i ; done
- ls ${CPIO1} ${CPIO2} | cpio -H newc -oa | gzip -9 > cpio.flp
+ ( cd /${DESTDIR} ; ls ${CPIO2} | cpio -H newc -oa ) | cpio -ivd
+ ( cd ${.CURDIR} ; ls ${CPIO3} | cpio -H newc -oa ) | cpio -ivd
+ ls ${CPIO1} ${CPIO2} ${CPIO3} | cpio -H newc -oa | gzip -9 > cpio.flp
gzip -9 -v < cpio.flp > cpio.flp.gz
ls -l cpio.flp*
@@ -107,8 +109,7 @@ small.floppies:
floppies: crunch boot.flp cpio.flp
release20:
- ( cd ${.CURDIR} ; ${MAKE} cleandist)
- ( cd ${.CURDIR} ; ${MAKE} obj)
+ ( cd ${.CURDIR} ; ${MAKE} clean)
-mkdir ${RELEASEDIR}
chflags -R noschg ${RELEASEDIR}/.
rm -rf ${RELEASEDIR}/*
@@ -116,6 +117,7 @@ release20:
${MAKE} world NOCRYPT=yes)
( cd ${.CURDIR}/../etc ; \
${MAKE} release-dirs )
+ ( cd ${.CURDIR} ; ${MAKE} obj)
( cd ${.CURDIR} ; \
${MAKE} kernel DESTDIR=${RELEASEDIR}/filesys )
install ${COPY} -m 644 ${.CURDIR}/../sys/compile/GENERIC/kernel \
diff --git a/release/extract.sh b/release/extract.sh
new file mode 100644
index 000000000000..177efee42749
--- /dev/null
+++ b/release/extract.sh
@@ -0,0 +1,4 @@
+:
+if [ -f bindist.tgz.aa ] ; then
+ cat bindist.tgz.?? | zcat | ( cd / ; cpio -H tar -idumV )
+fi