From: Tom Yu Date: Fri, 25 Sep 1998 00:05:59 +0000 (+0000) Subject: * mkrel: Add fixes to deal with "tails" on release directories, X-Git-Tag: krb5-1.1-beta1~533 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2757b9de7c8e085683a041431feb5dbb82cae816;p=krb5.git * mkrel: Add fixes to deal with "tails" on release directories, e.g. for beta releases. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10936 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/util/ChangeLog b/src/util/ChangeLog index d2bb77138..d9eab6f9a 100644 --- a/src/util/ChangeLog +++ b/src/util/ChangeLog @@ -1,3 +1,8 @@ +Thu Sep 24 20:05:33 1998 Tom Yu + + * mkrel: Add fixes to deal with "tails" on release directories, + e.g. for beta releases. + Wed Feb 18 16:31:21 1998 Tom Yu * send-pr/Makefile.in: Remove trialing slash from thisconfigdir. diff --git a/src/util/mkrel b/src/util/mkrel index 4c96302bd..ae7a1ed37 100644 --- a/src/util/mkrel +++ b/src/util/mkrel @@ -27,6 +27,8 @@ reldir=$2 relmajor=0 relminor=0 relpatch=0 +relhead= +reltail= reldate=`date +%Y%m%d` case "$reldir" in @@ -38,6 +40,14 @@ case "$reldir" in echo "release-dir may not contain whitespace." exit 1 ;; +krb5-*.*.*-*) + release=`echo $reldir|sed -e 's/krb5-//'` + relhead=`echo $release|sed -e 's/-.*//'` + reltail=`echo $release|sed -e 's/.*-//'` + relmajor=`echo $relhead|awk -F. '{print $1}'` + relminor=`echo $relhead|awk -F. '{print $2}'` + relpatch=`echo $relhead|awk -F. '{print $3}'` + ;; krb5-*.*.*) release=`echo $reldir|sed -e 's/krb5-//'` relmajor=`echo $release|awk -F. '{print $1}'`