+2001-04-05 Tom Yu <tlyu@mit.edu>
+
+ * mkrel: When generating multiple tarballs, also generate a
+ consolidated tarball. Default to making a single
+ tarball. [pullups from krb5-1-2-2-branch]
+
2001-01-28 Tom Yu <tlyu@mit.edu>
* Makefile.in: Remove rule for aix.bincmds; we don't need it
dodoc=t
dosrc=t
checkout=t
+multitar=nil
while test $# -gt 2; do
case $1 in
--srconly)
dodoc=nil;;
--doconly)
dosrc=nil;;
+ --multi*)
+ multitar=t;;
--repository)
shift; repository=$1;;
--nocheckout)
echo "Generating tarfiles..."
GZIP=-9; export GZIP
-if test $dosrc = t; then
- gtar --exclude $reldir/src/lib/crypto \
- --exclude $reldir/src/lib/des425 \
- --exclude $reldir/doc \
- -zcf ${reldir}.src.tar.gz $reldir
-
- gtar zcf ${reldir}.crypto.tar.gz \
- $reldir/src/lib/crypto \
- $reldir/src/lib/des425
-fi
-
-if test $dodoc = t; then
- gtar zcf ${reldir}.doc.tar.gz $reldir/doc $reldir/README
+if test $multitar = t; then
+ if test $dosrc = t; then
+ gtar --exclude $reldir/src/lib/crypto \
+ --exclude $reldir/src/lib/des425 \
+ --exclude $reldir/doc \
+ -zcf ${reldir}.src.tar.gz $reldir
+
+ gtar zcf ${reldir}.crypto.tar.gz \
+ $reldir/src/lib/crypto \
+ $reldir/src/lib/des425
+ fi
+ if test $dodoc = t; then
+ gtar zcf ${reldir}.doc.tar.gz $reldir/doc $reldir/README
+ fi
+ ls -l ${reldir}.*.tar.gz
fi
-ls -l ${reldir}.*.tar.gz
+gtar zcf ${reldir}.tar.gz $reldir
+ls -l ${reldir}.tar.gz
echo "Done."