1996-02-13 00:58:46 +03:00
|
|
|
#! /bin/sh
|
1997-02-18 10:06:00 +03:00
|
|
|
#
|
1998-10-12 20:28:35 +04:00
|
|
|
# $NetBSD: makesrctars,v 1.8 1998/10/12 16:28:35 perry Exp $
|
1997-02-18 10:06:00 +03:00
|
|
|
#
|
|
|
|
# Make source code tarballs.
|
1996-02-13 00:58:46 +03:00
|
|
|
|
|
|
|
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}
|
|
|
|
|
1997-12-30 02:31:06 +03:00
|
|
|
mkdir ${DESTDIR}/sets
|
|
|
|
|
1996-02-13 00:58:46 +03:00
|
|
|
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 | \
|
1997-12-30 02:31:06 +03:00
|
|
|
sort | pax -w -d -s'|^./|./usr/src/|' | gzip \
|
|
|
|
> ${DESTDIR}/sets/src.tgz
|
1996-02-13 00:58:46 +03:00
|
|
|
|
|
|
|
find gnu \
|
|
|
|
\! \( -name CVS -prune \) \! \( -name obj -prune \) -print | \
|
1997-12-30 02:31:06 +03:00
|
|
|
sort | pax -w -d -s'|^|./usr/src/|' | gzip \
|
|
|
|
> ${DESTDIR}/sets/gnusrc.tgz
|
1996-02-13 00:58:46 +03:00
|
|
|
|
1997-03-07 02:41:22 +03:00
|
|
|
find sys usr.sbin/config usr.sbin/dbsym \
|
1998-10-12 20:28:35 +04:00
|
|
|
\! \( -name CVS -prune \) \! \( -name obj -prune \) \
|
|
|
|
\! \( -name compile -prune \) \
|
|
|
|
-print | \
|
1997-12-30 02:31:06 +03:00
|
|
|
sort | pax -w -d -s'|^|./usr/src/|' | gzip \
|
|
|
|
> ${DESTDIR}/sets/syssrc.tgz
|
1996-02-13 00:58:46 +03:00
|
|
|
|
|
|
|
find share \
|
|
|
|
\! \( -name CVS -prune \) \! \( -name obj -prune \) -print | \
|
1997-12-30 02:31:06 +03:00
|
|
|
sort | pax -w -d -s'|^|./usr/src/|' | gzip \
|
|
|
|
> ${DESTDIR}/sets/sharesrc.tgz
|
|
|
|
|
1998-05-10 20:48:44 +04:00
|
|
|
(cd ${DESTDIR}/sets
|
|
|
|
cksum -o1 *.tgz > BSDSUM
|
|
|
|
cksum *.tgz > CKSUM
|
|
|
|
cksum -o2 *.tgz > SYSVSUM
|
|
|
|
md5 *.tgz > MD5)
|
1997-12-30 02:31:06 +03:00
|
|
|
chmod 444 ${DESTDIR}/sets/*
|
|
|
|
|
|
|
|
mkdir ${DESTDIR}/security
|
1996-02-13 00:58:46 +03:00
|
|
|
|
|
|
|
find domestic \
|
|
|
|
\! \( -name CVS -prune \) \! \( -name obj -prune \) -print | \
|
1997-12-30 02:31:06 +03:00
|
|
|
sort | pax -w -d -s'|^|./usr/src/|' | gzip \
|
|
|
|
> ${DESTDIR}/security/secrsrc.tgz
|
|
|
|
|
1998-05-10 20:48:44 +04:00
|
|
|
(cd ${DESTDIR}/security
|
|
|
|
cksum -o1 *.tgz > BSDSUM
|
|
|
|
cksum *.tgz > CKSUM
|
|
|
|
cksum -o2 *.tgz > SYSVSUM
|
|
|
|
md5 *.tgz > MD5)
|
1997-12-30 02:31:06 +03:00
|
|
|
chmod 444 ${DESTDIR}/security/*
|