X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/2ce79856e6d3257eba87d95b6c08973e604c4db1..134a1ab5f9b5976073bfb9a5f723b945ca06533a:/mkunxarc.sh diff --git a/mkunxarc.sh b/mkunxarc.sh index 3fcbe107..7c69c2f6 100755 --- a/mkunxarc.sh +++ b/mkunxarc.sh @@ -4,27 +4,37 @@ # # Pass an argument of the form `2004-02-08' to have the archive # tagged as a development snapshot; of the form `0.54' to have it -# tagged as a release. +# tagged as a release; of the form `r1234' to have it tagged as a +# custom build. Otherwise it'll be tagged as unidentified. case "$1" in ????-??-??) case "$1" in *[!-0-9]*) echo "Malformed snapshot ID '$1'" >&2;exit 1;;esac arcsuffix="-`cat LATEST.VER`-$1" ver="-DSNAPSHOT=$1" + docver= + ;; + r*) + arcsuffix="-$1" + ver="-DSVN_REV=$1" + docver= ;; '') arcsuffix= ver= + docver= ;; *) case "$1" in *[!.0-9a-z]*) echo "Malformed release ID '$1'">&2;exit 1;;esac arcsuffix="-$1" ver="-DRELEASE=$1" + docver="VERSION=\"PuTTY release $1\"" ;; esac perl mkfiles.pl -(cd doc && make -s) +(cd doc && make -s ${docver:+"$docver"}) +sh mkauto.sh 2>/dev/null relver=`cat LATEST.VER` arcname="putty$arcsuffix"