A whole slew of changes relating to the generation of src-dists.
This commit is contained in:
parent
32d2e89f5d
commit
836ed9f2c2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=7311
@ -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
|
||||
|
@ -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"
|
||||
|
@ -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=""
|
||||
|
Loading…
Reference in New Issue
Block a user