From: Tom Yu Date: Wed, 8 Oct 1997 20:21:34 +0000 (+0000) Subject: * mkrel: Allow for edits of relevant files that should be changed X-Git-Tag: krb5-1.1-beta1~1006 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=35cd68d5720cfd16686a097be492a3949edab9f9;p=krb5.git * mkrel: Allow for edits of relevant files that should be changed each time a release is cut. Some snapshot support. Add "-9" flag to gzip. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10219 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/util/ChangeLog b/src/util/ChangeLog index d4a013163..2753dc6db 100644 --- a/src/util/ChangeLog +++ b/src/util/ChangeLog @@ -1,3 +1,9 @@ +Wed Oct 8 16:19:49 1997 Tom Yu + + * mkrel: Allow for edits of relevant files that should be changed + each time a release is cut. Some snapshot support. Add "-9" flag + to gzip. + Fri Feb 21 15:58:19 1997 Sam Hartman * makeshlib.sh : Remove non AIX stuff; rewrite AIX stuff to work diff --git a/src/util/mkrel b/src/util/mkrel index 9d705200e..4c96302bd 100644 --- a/src/util/mkrel +++ b/src/util/mkrel @@ -24,16 +24,39 @@ fi reltag=$1 reldir=$2 -case reldir in +relmajor=0 +relminor=0 +relpatch=0 +reldate=`date +%Y%m%d` + +case "$reldir" in */*) echo "release-dir may not contain slashes." exit 1 ;; +*" "*|*" "*) + echo "release-dir may not contain whitespace." + exit 1 + ;; +krb5-*.*.*) + release=`echo $reldir|sed -e 's/krb5-//'` + relmajor=`echo $release|awk -F. '{print $1}'` + relminor=`echo $release|awk -F. '{print $2}'` + relpatch=`echo $release|awk -F. '{print $3}'` + ;; +krb5-*.*) + release=`echo $reldir|sed -e 's/krb5-//'` + relmajor=`echo $release|awk -F. '{print $1}'` + relminor=`echo $release|awk -F. '{print $2}'` + ;; +krb5-current) + release=current-$reldate + ;; *);; esac -echo "Checking out krb5 with tag $reltag into directory $reldir..." if test $checkout = t; then + echo "Checking out krb5 with tag $reltag into directory $reldir..." cvs -q -d $repository export -r$reltag -d $reldir krb5 fi @@ -50,6 +73,25 @@ if test $dosrc = t; then (cd $reldir/src/util/autoconf; make distclean) fi +echo "Editing release-specific files..." + +(cd $reldir/src/lib/krb5/krb && \ + sed -e '/static/s%KRB5_BRAND:[^"]*"%'"KRB5_BRAND: $reltag $release $reldate"'"%' \ + brand.c > brand.c.new && mv brand.c.new brand.c; \ + rm -f brand.c.new) + +(cd $reldir/src/util/send-pr && \ + sed -e 's%RELEASE=.*%RELEASE='"krb5-$release"'%' Makefile.in \ + > Makefile.in.new && mv Makefile.in.new Makefile.in) + +(cd $reldir/src && \ + cat > patchlevel.h <