diff options
author | Simon Tatham <anakin@pobox.com> | 2011-11-26 21:35:21 +0400 |
---|---|---|
committer | Simon Tatham <anakin@pobox.com> | 2011-11-26 21:35:21 +0400 |
commit | 1dff23a2143b7a6ce1084a6308569d14c2826240 (patch) | |
tree | 29fede30588a9a890bba89d474149770dc4eda26 /mkunxarc.sh | |
parent | c72d4b413f024e3c50645caceaddbb65401fb06a (diff) |
Introduce a new version type, 'prerelease'. Quotes the version number
it's a pre-release of, and the revision number so you can tell two
pre-releases apart. I intend to use this for builds from branch-0.61
until I call it 0.62 proper.
[originally from svn r9343]
Diffstat (limited to 'mkunxarc.sh')
-rwxr-xr-x | mkunxarc.sh | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/mkunxarc.sh b/mkunxarc.sh index 0f9ff31c..b15e2f45 100755 --- a/mkunxarc.sh +++ b/mkunxarc.sh @@ -27,8 +27,17 @@ case "$1" in ver= docver= ;; + *pre) + set -- "${1%pre}" "$2" + case "$1" in *[!.0-9a-z~]*) echo "Malformed prerelease ID '$1'">&2;exit 1;;esac + case "$2" in *[!.0-9a-z~]*) echo "Malformed prerelease revision '$1'">&2;exit 1;;esac + autoconfver="$1~pre$2" + arcsuffix="-$autoconfver" + ver="-DPRERELEASE=$1 -DSVN_REV=$2" + docver="VERSION=\"PuTTY prerelease $1:r$2\"" + ;; *) - case "$1" in *[!.0-9a-z]*) echo "Malformed release ID '$1'">&2;exit 1;;esac + case "$1" in *[!.0-9a-z~]*) echo "Malformed release ID '$1'">&2;exit 1;;esac autoconfver="$1" arcsuffix="-$autoconfver" ver="-DRELEASE=$1" |