From 3089790df4a31bb5c57c9273637e84e51b48352f Mon Sep 17 00:00:00 2001 From: Tom Yu Date: Fri, 16 Sep 2005 22:35:07 +0000 Subject: [PATCH] pullup r17376 from trunk ticket: 3178 version_fixed: 1.4.3 git-svn-id: svn://anonsvn.mit.edu/krb5/branches/krb5-1-4@17383 dc483132-0cff-0310-8789-dd5450dbe970 --- src/util/ChangeLog | 4 ++++ src/util/mkrel | 12 +++++++----- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/src/util/ChangeLog b/src/util/ChangeLog index 5e792c8ac..0c4d7134c 100644 --- a/src/util/ChangeLog +++ b/src/util/ChangeLog @@ -1,3 +1,7 @@ +2005-09-08 Tom Yu + + * mkrel: Update for svn. + 2004-12-21 Tom Yu * def-check.pl: Check for PRIVATE or INTERNAL annotations in defs diff --git a/src/util/mkrel b/src/util/mkrel index 804dd5f90..9ada65d7d 100755 --- a/src/util/mkrel +++ b/src/util/mkrel @@ -1,6 +1,6 @@ #!/bin/sh set -e -repository=:gserver:cvs.mit.edu:/cvs/krbdev +repository=svn+ssh://svn.mit.edu/krb5 dodoc=t dosrc=t checkout=t @@ -22,6 +22,7 @@ while test $# -gt 2; do done if test $# -lt 2; then echo "usage: $0 [opts] release-tag release-dir" + echo " release-tag is relative to $repository/" exit 1 fi @@ -97,7 +98,7 @@ echo "major=$relmajor minor=$relminor patch=$relpatch" # so, we don't edit it here. # if test $checkout = t; then - if cvs -q -d $repository checkout -p -r$reltag krb5/src/patchlevel.h | grep KRB5_RELDATE > /dev/null 2>&1; then + if svn cat $repository/$reltag/src/patchlevel.h | grep KRB5_RELDATE > /dev/null 2>&1; then newstyle=t else newstyle=nil; @@ -113,11 +114,12 @@ fi if test $newstyle = t; then echo "parsing new style patchlevel.h..." if test $checkout = t; then - eval `cvs -q -d $repository checkout -p -r$reltag krb5/src/patchlevel.h | sed -n 's/#define \([A-Z0-9_]*\)[ \t]*\(.*\)/\1=\2/p'` + eval `svn cat $repository/$reltag/src/patchlevel.h | sed -n 's/#define \([A-Z0-9_]*\)[ \t]*\(.*\)/\1=\2/p'` else eval `sed -n 's/#define \([A-Z0-9_]*\)[ \t]*\(.*\)/\1=\2/p' < $reldir/src/patchlevel.h` fi - if test "$KRB5_RELTAG" != $reltag; then + if test "$KRB5_RELTAG" != $reltag && \ + test "$KRB5_RELTAG" != `echo $reltag|sed 's%[^/]*/%%'` ; then echo "WARNING: patchlevel.h '$KRB5_RELTAG' != $reltag" fi if test "$KRB5_MAJOR_RELEASE" != "$relmajor" || \ @@ -134,7 +136,7 @@ fi 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 + svn export $repository/$reltag $reldir fi if test $dosrc = t; then -- 2.26.2