1996-02-13 00:58:46 +03:00
|
|
|
#! /bin/sh
|
1997-02-18 10:06:00 +03:00
|
|
|
#
|
1997-05-10 19:42:53 +04:00
|
|
|
# $NetBSD: makesrctars,v 1.5 1997/05/10 15:42:55 lukem Exp $
|
1997-02-18 10:06:00 +03:00
|
|
|
#
|
|
|
|
# Make source code tarballs.
|
1996-02-13 00:58:46 +03:00
|
|
|
|
1997-05-10 19:42:53 +04:00
|
|
|
RELEASE=`sh ../../sys/conf/osrelease.sh -s`
|
1996-02-13 00:58:46 +03:00
|
|
|
SPLITSIZE=240640
|
|
|
|
|
|
|
|
GZIP=--best
|
|
|
|
export GZIP
|
|
|
|
|
|
|
|
if [ -z "$SRCDIR" ]; then
|
|
|
|
echo SRCDIR must be set
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -z "$DESTDIR" ]; then
|
|
|
|
echo DESTDIR must be set
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -d ${DESTDIR} ]; then
|
|
|
|
echo "DESTDIR exists."
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
cd $SRCDIR
|
|
|
|
|
|
|
|
mkdir ${DESTDIR}
|
|
|
|
|
|
|
|
mkdir ${DESTDIR}/src${RELEASE}
|
|
|
|
find . \
|
|
|
|
\! \( \( -path ./gnu -o -path ./share -o -path ./domestic \) -prune \) \
|
|
|
|
\! \( -path ./sys -prune \) \
|
|
|
|
\! \( -path ./usr.sbin/config -prune \) \
|
|
|
|
\! \( -path ./usr.sbin/dbsym -prune \) \
|
|
|
|
\! \( -name CVS -prune \) \! \( -name obj -prune \) -print | \
|
|
|
|
sort | pax -wv -d -s'|^./|./usr/src/|' | gzip | \
|
|
|
|
split -b ${SPLITSIZE} - ${DESTDIR}/src${RELEASE}/src${RELEASE}.
|
|
|
|
(cd ${DESTDIR}/src${RELEASE}; cksum src${RELEASE}.* > CKSUM)
|
|
|
|
chmod 444 ${DESTDIR}/src${RELEASE}/*
|
|
|
|
|
|
|
|
mkdir ${DESTDIR}/gsrc${RELEASE}
|
|
|
|
find gnu \
|
|
|
|
\! \( -name CVS -prune \) \! \( -name obj -prune \) -print | \
|
|
|
|
sort | pax -wv -d -s'|^|./usr/src/|' | gzip | \
|
|
|
|
split -b ${SPLITSIZE} - ${DESTDIR}/gsrc${RELEASE}/gsrc${RELEASE}.
|
|
|
|
(cd ${DESTDIR}/gsrc${RELEASE}; cksum gsrc${RELEASE}.* > CKSUM)
|
|
|
|
chmod 444 ${DESTDIR}/gsrc${RELEASE}/*
|
|
|
|
|
|
|
|
mkdir ${DESTDIR}/ksrc${RELEASE}
|
1997-03-07 02:41:22 +03:00
|
|
|
find sys usr.sbin/config usr.sbin/dbsym \
|
1996-02-13 00:58:46 +03:00
|
|
|
\! \( -name CVS -prune \) \! \( -name obj -prune \) -print | \
|
|
|
|
sort | pax -wv -d -s'|^|./usr/src/|' | gzip | \
|
|
|
|
split -b ${SPLITSIZE} - ${DESTDIR}/ksrc${RELEASE}/ksrc${RELEASE}.
|
|
|
|
(cd ${DESTDIR}/ksrc${RELEASE}; cksum ksrc${RELEASE}.* > CKSUM)
|
|
|
|
chmod 444 ${DESTDIR}/ksrc${RELEASE}/*
|
|
|
|
|
|
|
|
mkdir ${DESTDIR}/ssrc${RELEASE}
|
|
|
|
find share \
|
|
|
|
\! \( -name CVS -prune \) \! \( -name obj -prune \) -print | \
|
|
|
|
sort | pax -wv -d -s'|^|./usr/src/|' | gzip | \
|
|
|
|
split -b ${SPLITSIZE} - ${DESTDIR}/ssrc${RELEASE}/ssrc${RELEASE}.
|
|
|
|
(cd ${DESTDIR}/ssrc${RELEASE}; cksum ssrc${RELEASE}.* > CKSUM)
|
|
|
|
chmod 444 ${DESTDIR}/ssrc${RELEASE}/*
|
|
|
|
|
|
|
|
mkdir ${DESTDIR}/dsrc${RELEASE}
|
|
|
|
find domestic \
|
|
|
|
\! \( -name CVS -prune \) \! \( -name obj -prune \) -print | \
|
|
|
|
sort | pax -wv -d -s'|^|./usr/src/|' | gzip | \
|
|
|
|
split -b ${SPLITSIZE} - ${DESTDIR}/dsrc${RELEASE}/dsrc${RELEASE}.
|
|
|
|
(cd ${DESTDIR}/dsrc${RELEASE}; cksum dsrc${RELEASE}.* > CKSUM)
|
|
|
|
chmod 444 ${DESTDIR}/dsrc${RELEASE}/*
|