diff options
author | Tom Yu <tlyu@mit.edu> | 1996-09-18 22:20:56 +0000 |
---|---|---|
committer | Tom Yu <tlyu@mit.edu> | 1996-09-18 22:20:56 +0000 |
commit | 8765b6f98b8da609392847a7c1dac141d7af4d7f (patch) | |
tree | 42e7027209b0aa47fafa0ac04c28939495e53bac | |
parent | f3ca77f7fe76f964de3fad01d334b3d6ced1358d (diff) | |
download | krb5-8765b6f98b8da609392847a7c1dac141d7af4d7f.zip krb5-8765b6f98b8da609392847a7c1dac141d7af4d7f.tar.gz krb5-8765b6f98b8da609392847a7c1dac141d7af4d7f.tar.bz2 |
add mkrel (release generation script)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9094 dc483132-0cff-0310-8789-dd5450dbe970
-rw-r--r-- | src/util/mkrel | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/src/util/mkrel b/src/util/mkrel new file mode 100644 index 0000000..05efe94 --- /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 |