diff options
author | Tom Yu <tlyu@mit.edu> | 2005-09-08 22:14:08 +0000 |
---|---|---|
committer | Tom Yu <tlyu@mit.edu> | 2005-09-08 22:14:08 +0000 |
commit | 0333abc05fd1580ea00d7610d81f37435956b629 (patch) | |
tree | e26b0423fba68b9c017ea17dd2408912b4dc9ead /src/util/mkrel | |
parent | 5b9eda5632d6d5b2c54614dd1a80c73de6491675 (diff) | |
download | krb5-0333abc05fd1580ea00d7610d81f37435956b629.tar.gz krb5-0333abc05fd1580ea00d7610d81f37435956b629.tar.xz krb5-0333abc05fd1580ea00d7610d81f37435956b629.zip |
update mkrel for svn
* mkrel: Update for svn.
ticket: new
target_version: 1.4.3
tags: pullup
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17376 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/util/mkrel')
-rwxr-xr-x | src/util/mkrel | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/util/mkrel b/src/util/mkrel index 804dd5f907..9ada65d7dd 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 |