diff options
author | phk <phk@FreeBSD.org> | 1995-03-24 02:45:34 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1995-03-24 02:45:34 +0000 |
commit | a3bee0e414af1daf8795f29c45553337affa5a1a (patch) | |
tree | 0e4f1564ba07271ebcd942e65e0caf19b9e55329 /release | |
parent | 946c41de428d278d09cbf675004e73094530ad6e (diff) | |
download | FreeBSD-src-a3bee0e414af1daf8795f29c45553337affa5a1a.zip FreeBSD-src-a3bee0e414af1daf8795f29c45553337affa5a1a.tar.gz |
A whole slew of changes relating to the generation of src-dists.
Diffstat (limited to 'release')
-rw-r--r-- | release/Makefile | 27 | ||||
-rw-r--r-- | release/scripts/extract_src.sh | 10 | ||||
-rw-r--r-- | release/scripts/miscfuncs.sh | 6 |
3 files changed, 25 insertions, 18 deletions
diff --git a/release/Makefile b/release/Makefile index a5cdd52..04729a7 100644 --- a/release/Makefile +++ b/release/Makefile @@ -1,4 +1,4 @@ -# $Id: Makefile,v 1.121 1995/03/22 20:37:53 phk Exp $ +# $Id: Makefile,v 1.122 1995/03/24 02:05:32 phk Exp $ # # How to roll a release: # @@ -240,6 +240,13 @@ release.7: @cd ${.CURDIR} ; $(MAKE) ckRELEASEDIR cd ${RD}/trees/bin ; ls ${CPIO1} | cpio -dump ${RD}/cpiofd/stand cd ${.CURDIR} ; ls ${CPIO2} | cpio -dumpv ${RD}/cpiofd/stand + ( JUST_TELL_ME=please ; . ${.CURDIR}/../sys/conf/newvers.sh ; \ + sed "/DISTNAME=/s/FOOBAR/$$DISTNAME/" \ + < ${RD}/cpiofd/stand/scripts/miscfuncs.sh \ + > ${RD}/cpiofd/stand/scripts/tmp ;\ + ) + mv ${RD}/cpiofd/stand/scripts/tmp \ + ${RD}/cpiofd/stand/scripts/miscfuncs.sh chmod 755 ${RD}/cpiofd/stand/scripts/* cp ${RD}/trees/bin/usr/sbin/tzsetup ${RD}/cpiofd/stand ( cd ${RD}/cpiofd ; \ @@ -259,7 +266,7 @@ release.8: if [ -d ${RD}/trees/$${i} ] ; then \ cd ${.CURDIR} ; \ $(MAKE) doTARBALL SD=${RD}/trees/$${i} \ - TD=$$i ARG="." ; \ + TN=$$i TD=$$i ARG="." ; \ ( cd ${RD}/dists/$${i}; \ sh -e ${.CURDIR}/scripts/mkchecksums.sh ) ; \ cp ${.CURDIR}/scripts/extract_$${i}.sh \ @@ -273,13 +280,13 @@ release.8: # Make source dists release.9: @cd ${.CURDIR} ; $(MAKE) ckRELEASEDIR - @cd ${.CURDIR} ; $(MAKE) doTARBALL SD=/usr/src TD=src/base ARG="[A-Z]*" - @for i in bin etc games gnu include lib libexec release sbin \ - secure lkm eBones share sys usrbin usrsbin ; do \ - if [ -d /usr/src/$$i ] ; then \ + @cd ${.CURDIR} ; $(MAKE) doTARBALL SD=/usr/src \ + TD=src TN=srcbase ARG="[A-Z]*" + @for i in `cd /usr/src ; echo *` ; do \ + if [ -d /usr/src/$$i -a "$$i" != "CVS" ] ; then \ cd ${.CURDIR} ; \ $(MAKE) doTARBALL SD=/usr/src \ - TD=src ARG="$$i" ; \ + TN=src$$i TD=src ARG="$$i" ; \ fi ; \ done ( cd ${RD}/dists/src; \ @@ -340,12 +347,12 @@ doTARBALL: .if !defined(ARG) @echo "ARG undefined in doTARBALL" ; exit 1 .endif - rm -rf ${RD}/dists/${TD} + rm -rf ${RD}/dists/${TD}/${TN}* mkdir -p ${RD}/dists/${TD} ( cd ${SD} ; \ - echo rolling ${TD} tarball ;\ + echo rolling ${TD}/${TN} tarball ;\ tar --exclude CVS --exclude obj -cf - ${ARG} | \ - ${ZIPNSPLIT} ${RD}/dists/${TD}/`basename ${TD}`. ) + ${ZIPNSPLIT} ${RD}/dists/${TD}/${TN}. ) doRELEASE: release.1 release.2 release.3 release.4 release.5 release.6 \ release.7 release.8 release.9 release.10 diff --git a/release/scripts/extract_src.sh b/release/scripts/extract_src.sh index a340072..a77fe1d 100644 --- a/release/scripts/extract_src.sh +++ b/release/scripts/extract_src.sh @@ -1,13 +1,13 @@ #!/bin/sh -# $Id: extract_src.sh,v 1.7 1995/03/24 00:16:51 phk Exp $ +# $Id: extract_src.sh,v 1.8 1995/03/24 02:04:00 phk Exp $ PATH=/stand:$PATH DDIR=/usr/src -for DIST in base srcbin etc games gnu include lib libexec release sbin lkm \ - release share sys usrbin usrsbin; do - if [ -f ${DIST}/${DIST}.aa ]; then +for T in src*.aa ; do + DIST=`basename $T .aa` + if [ -f ${DIST}.aa ]; then echo "Extracting ${DIST} sources" - cat ${DIST}/${DIST}.?? + cat ${DIST}.?? | gzip -c -d | ( cd $DDIR; cpio -H tar -imdu ) elif [ -f ${DIST}.aa ]; then echo "Extracting ${DIST} sources" diff --git a/release/scripts/miscfuncs.sh b/release/scripts/miscfuncs.sh index 275c98b..4db3220 100644 --- a/release/scripts/miscfuncs.sh +++ b/release/scripts/miscfuncs.sh @@ -10,7 +10,7 @@ # putting your name on top after doing something trivial like reindenting # it, just to make it look like you wrote it!). # -# $Id: miscfuncs.sh,v 1.6 1995/02/02 08:31:37 jkh Exp $ +# $Id: miscfuncs.sh,v 1.7 1995/02/10 01:12:38 jkh Exp $ if [ "${_MISCFUNCS_SH_LOADED_}" = "yes" ]; then return 0 @@ -21,8 +21,8 @@ fi PATH=/usr/bin:/usr/sbin:/bin:/sbin:/stand export PATH -# Keep this current with the distribution! -DISTNAME="2.0-950210-SNAP" +# Edited by src/release/Makefile +DISTNAME="FOOBAR" # Express or Custom install? INSTALL_TYPE="" |