diff options
author | Ollivier Robert <roberto@FreeBSD.org> | 2008-08-18 14:26:05 +0000 |
---|---|---|
committer | Ollivier Robert <roberto@FreeBSD.org> | 2008-08-18 14:26:05 +0000 |
commit | ff717da2cf625e3d07537a93a4c240692fa55bd6 (patch) | |
tree | 9dcf618e4446ac2b5fca7d0afe7767382664f0d6 /scripts/VersionName | |
parent | cce65f439697627afbccf5a67035a957bb4d784a (diff) |
Notes
Diffstat (limited to 'scripts/VersionName')
-rwxr-xr-x | scripts/VersionName | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/scripts/VersionName b/scripts/VersionName new file mode 100755 index 000000000000..f601cc34821e --- /dev/null +++ b/scripts/VersionName @@ -0,0 +1,41 @@ +#! /bin/sh + +# This script must be executed from the TLD of the source tree... +. ./packageinfo.sh + +NAME="$version" +case $point in + [0-9]*) + NAME="${NAME}p$point" + ;; + NEW) ;; + '') ;; + *) echo "Unexpected value for 'point' <$point>!" + exit 1 + ;; +esac + +case $special in + '') ;; + *) NAME="${NAME}-$special" ;; +esac + +case $releasecandidate in + [Nn][Oo]) ;; + [Yy][Ee][Ss]) NAME="${NAME}-RC" ;; + *) echo "Unexpected value for 'releasecandidate' <$releasecandidate>!" + exit 1 + ;; +esac + +case $repotype in + stable) + case $rcpoint in + [0-9]*) + NAME="${NAME}$rcpoint" + ;; + esac + ;; +esac + +echo "$NAME" |