X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/76d3a838799e8abde2e7ac41fc59ef8785c29a6f..2299e1bb723712b33123058cc655ce09ee38b18f:/mkunxarc.sh diff --git a/mkunxarc.sh b/mkunxarc.sh index 8433c383..6c3e8924 100755 --- a/mkunxarc.sh +++ b/mkunxarc.sh @@ -1,10 +1,11 @@ -#!/bin/sh +#!/bin/bash # Build a Unix source distribution from the PuTTY CVS area. # # 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 ????-??-??) @@ -13,6 +14,11 @@ case "$1" in ver="-DSNAPSHOT=$1" docver= ;; + r*) + arcsuffix="-$1" + ver="-DSVN_REV=${1#r}" + docver= + ;; '') arcsuffix= ver= @@ -28,9 +34,7 @@ esac perl mkfiles.pl (cd doc && make -s ${docver:+"$docver"}) -# Track down automake's copy of install-sh -cp `aclocal --print-ac-dir | sed 's/aclocal$/automake/'`/install-sh unix/. -(cd unix && autoreconf && rm -rf aclocal.m4 autom4te.cache) +sh mkauto.sh 2>/dev/null relver=`cat LATEST.VER` arcname="putty$arcsuffix"