X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/8b4e077f903f757ad2dcf50040164a09376b6555..95aec24912aa931cd1bd58508313295a9393bd14:/mkunxarc.sh diff --git a/mkunxarc.sh b/mkunxarc.sh index fa91dc2f..7c69c2f6 100755 --- a/mkunxarc.sh +++ b/mkunxarc.sh @@ -4,36 +4,51 @@ # # 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 ${docver:+"$docver"}) +sh mkauto.sh 2>/dev/null relver=`cat LATEST.VER` arcname="putty$arcsuffix" mkdir uxarc mkdir uxarc/$arcname -find . -name uxarc -prune -o -name . -o \ +find . -name uxarc -prune -o \ + -name CVS -prune -o \ + -name .svn -prune -o \ + -name . -o \ -type d -exec mkdir uxarc/$arcname/{} \; find . -name uxarc -prune -o \ -name CVS -prune -o \ -name .cvsignore -prune -o \ + -name .svn -prune -o \ -name '*.zip' -prune -o \ -name '*.tar.gz' -prune -o \ -type f -exec ln -s $PWD/{} uxarc/$arcname/{} \; @@ -42,5 +57,5 @@ if test "x$ver" != "x"; then md5sum `find . -name '*.[ch]' -print` > manifest; echo "$ver" > version.def) fi -tar -C uxarc -chzf - $arcname > $arcname.tar.gz +tar -C uxarc -chzof $arcname.tar.gz $arcname rm -rf uxarc