diff options
author | Glen Barber <gjb@FreeBSD.org> | 2014-03-06 18:48:02 +0000 |
---|---|---|
committer | Glen Barber <gjb@FreeBSD.org> | 2014-03-06 18:48:02 +0000 |
commit | 9362e2bc577a74811c1044ed7f407ae0858c7ab9 (patch) | |
tree | 8d9b644485c61fa065974b6141d0ef06d06c6938 /release | |
parent | ea9ed3d85bdb7edad35dc756f30f49c63efc5faf (diff) | |
download | src-9362e2bc577a74811c1044ed7f407ae0858c7ab9.tar.gz src-9362e2bc577a74811c1044ed7f407ae0858c7ab9.zip |
Add a hack-ish attempt to provide backwards-compatibility with
release.conf SVNROOT entries that do not have a trailing '/'.
In order to provide a mechanism to use !svn, the trailing '/'
was added to SVNROOT so there were no assumptions being made
about '/' being in the URL between SVNROOT and SRCBRANCH.
Sponsored by: The FreeBSD Foundation
Notes
Notes:
svn path=/head/; revision=262862
Diffstat (limited to 'release')
-rwxr-xr-x | release/release.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/release/release.sh b/release/release.sh index c419d59410cf..b7428298fc4e 100755 --- a/release/release.sh +++ b/release/release.sh @@ -107,6 +107,16 @@ while getopts c: opt; do done shift $(($OPTIND - 1)) +# Fix for backwards-compatibility with release.conf that does not have the +# trailing '/'. +case ${SVNROOT} in + *svn*) + SVNROOT="${SVNROOT}/" + ;; + *) + ;; +esac + # Prefix the branches with the SVNROOT for the full checkout URL. SRCBRANCH="${SVNROOT}${SRCBRANCH}" DOCBRANCH="${SVNROOT}${DOCBRANCH}" |