+1999-08-16 Tom Yu <tlyu@mit.edu>
+
+ * mkrel (reldate): Fix to deal with release branch snapshots.
+
Wed May 19 11:43:36 1999 Danilo Almeida <dalmeida@mit.edu>
* Makefile.in: Add all and cleanup rules for windows for windows,
relminor=`echo $release|awk -F. '{print $2}'`
relpatch=`echo $release|awk -F. '{print $3}'`
;;
+krb5-*.*-current)
+ release=`echo $reldir|sed -e 's/krb5-//'`
+ relhead=`echo $release|sed -e 's/-.*//'`
+ relmajor=`echo $relhead|awk -F. '{print $1}'`
+ relminor=`echo $relhead|awk -F. '{print $2}'`
+ release=${relhead}-$reldate
+ ;;
+krb5-*.*-*)
+ release=`echo $reldir|sed -e 's/krb5-//'`
+ relhead=`echo $release|sed -e 's/-.*//'`
+ relmajor=`echo $relhead|awk -F. '{print $1}'`
+ relminor=`echo $relhead|awk -F. '{print $2}'`
+ ;;
krb5-*.*)
release=`echo $reldir|sed -e 's/krb5-//'`
relmajor=`echo $release|awk -F. '{print $1}'`
krb5-current)
release=current-$reldate
;;
-*);;
+*)
+ release="$reldir"
+ ;;
esac
+echo "release=$release"
+echo "major=$relmajor minor=$relminor patch=$relpatch"
+
+# $release is used for send-pr
+# $reltag, $release, $reldate are used for brand.c currently
+# $relmajor, $relminor, $relpatch are used for patchlevel.h currently
+
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