From 8765b6f98b8da609392847a7c1dac141d7af4d7f Mon Sep 17 00:00:00 2001 From: Tom Yu Date: Wed, 18 Sep 1996 22:20:56 +0000 Subject: [PATCH] add mkrel (release generation script) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9094 dc483132-0cff-0310-8789-dd5450dbe970 --- src/util/mkrel | 55 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 src/util/mkrel diff --git a/src/util/mkrel b/src/util/mkrel new file mode 100644 index 000000000..05efe946d --- /dev/null +++ b/src/util/mkrel @@ -0,0 +1,55 @@ +#!/bin/sh +: ${repository=/afs/athena.mit.edu/astaff/project/krbdev/.cvsroot} +case $# in +2);; +*) + echo "usage: $0 release-tag release-dir" + exit 1 + ;; +esac + +reltag=$1 +reldir=$2 + +case reldir in +*/*) + echo "release-dir may not contain slashes." + exit 1 + ;; +*);; +esac + +if test ! -d $reldir; then + mkdir $reldir +fi + +cvs -q -d $repository export -r$reltag -d$reldir krb5 + +echo "Building autoconf" +(cd $reldir/src/util/autoconf + M4=gm4 ./configure + make) + +echo "Creating configure scripts" +(cd $reldir/src;util/reconf) + +echo "Cleaning src/util/autoconf" +(cd $reldir/src/util/autoconf;make distclean) + +echo "Nuking unneeded files" +find $reldir \( -name TODO -o -name todo -o -name .cvsignore \ + -o -name BADSYMS -o -name .Sanitize \) -print \ + | xargs rm -f + +echo "Generating tarfiles" +gtar --exclude $reldir/src/lib/crypto \ + --exclude $reldir/src/lib/des425 \ + -zcf ${reldir}.src.tar.gz $reldir + +gtar zcf ${reldir}.crypto.tar.gz \ + $reldir/src/lib/crypto \ + $reldir/src/lib/des425 + +gtar zcf ${reldir}.doc.tar.gz $reldir/doc $reldir/README + +exit 0 -- 2.26.2