Subject: Re: 19971202 snapshot available
To: Erik E. Fair <fair@clock.org>
From: Paul Kranenburg <pk@cs.few.eur.nl>
List: port-sparc
Date: 12/04/1997 00:51:41
> I'm still putting these things in ALPHA, mostly because I haven't converted
> the format for BETA according to release(7) yet. I don't suppose the
> Makefiles will do that yet...?
I have put a release(7)-compliant distribution set in the BETA directory
yesterday.
Here's a quickly-hacked shell script I used collect the stuff (for
the sun3 folks: it contains a few sparc specific things):
#!/bin/sh
SRCDIR=/usr/src
SETSDIR=$SRCDIR/distrib/sets
MAKETARS=$SETSDIR/maketars
ARCH=`uname -m`
REV=`sh ${SRCDIR}/sys/conf/osrelease.sh -s`
[ "$RELEASEBASE" ] || {
echo RELEASEBASE must be set
exit 1
}
[ "$DESTDIR" ] || {
echo DESTDIR must be set
exit 1
}
KERNELS="GENERIC GENERIC_SCSI3"
SUBDIRS="binary binary/sets binary/kernel security installation installation/miniroot installation/netboot"
for d in $SUBDIRS; do
[ -d $RELEASEBASE/$d ] || mkdir $RELEASEBASE/$d
done
# the base sets
RELEASEDIR=$RELEASEBASE/binary/sets; export RELEASEDIR
#sh $MAKETARS -setd $SETSDIR
# net boot program
cp -p $DESTDIR/usr/mdec/boot.net $RELEASEBASE/installation/netboot
# kernels
for k in $KERNELS; do
cp -p $SRCDIR/sys/arch/$ARCH/compile/$k/netbsd \
$RELEASEBASE/binary/kernel/netbsd.$k
done
# the miniroot
cp -p $SRCDIR/distrib/miniroot/obj.$ARCH/miniroot-${REV}.fs \
$RELEASEBASE/installation/miniroot
# the installation notes
cp -p $SRCDIR/distrib/notes/INSTALL.$ARCH $RELEASEBASE/INSTALL
date -u > $RELEASEBASE/SOURCE_DATE
for d in . $SUBDIRS; do
(
cd $RELEASEBASE/$d
> CKSUM
> BSDSUM
> SYSVSUM
> MD5
for f in *; do
if [ ! -f $f -o $f = '*' ]; then continue; fi
if [ $f = 'MD5' ]; then continue; fi
if expr //$f : '.*SUM$' > /dev/null ; then continue; fi
cksum $f >> CKSUM
cksum -o1 $f >> BSDSUM
cksum -o2 $f >> SYSVSUM
cksum -m $f >> MD5
done
)
done