diff options
author | Riley McArdle <riley@glyff.net> | 2013-10-02 02:03:47 +0400 |
---|---|---|
committer | Riley McArdle <riley@glyff.net> | 2013-10-02 02:03:47 +0400 |
commit | dd941345caaa05bf34486dc71e4d31fcba05255a (patch) | |
tree | 0f0f44555fd6c9f949a33f47f92075eb3a4e27e1 /MKUNXARC.SH | |
parent | a37f8efa131e2d4198f00c19f387e6b0da2bd064 (diff) |
Original PuTTY beta 0.63 from Simon Tatham.
Diffstat (limited to 'MKUNXARC.SH')
-rw-r--r-- | MKUNXARC.SH | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/MKUNXARC.SH b/MKUNXARC.SH index 20ff1550..b15e2f45 100644 --- a/MKUNXARC.SH +++ b/MKUNXARC.SH @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Build a Unix source distribution from the PuTTY CVS area. # @@ -10,16 +10,19 @@ case "$1" in ????-??-??) case "$1" in *[!-0-9]*) echo "Malformed snapshot ID '$1'" >&2;exit 1;;esac - arcsuffix="-`cat LATEST.VER`-$1" + autoconfver="`cat LATEST.VER`-$1" + arcsuffix="-$autoconfver" ver="-DSNAPSHOT=$1" docver= ;; r*) - arcsuffix="-$1" - ver="-DSVN_REV=$1" + autoconfver="$1" + arcsuffix="-$autoconfver" + ver="-DSVN_REV=${1#r}" docver= ;; '') + autoconfver="X.XX" # got to put something in here! arcsuffix= ver= docver= @@ -35,7 +38,8 @@ case "$1" in ;; *) case "$1" in *[!.0-9a-z~]*) echo "Malformed release ID '$1'">&2;exit 1;;esac - arcsuffix="-$1" + autoconfver="$1" + arcsuffix="-$autoconfver" ver="-DRELEASE=$1" docver="VERSION=\"PuTTY release $1\"" ;; @@ -43,7 +47,6 @@ esac perl mkfiles.pl (cd doc && make -s ${docver:+"$docver"}) -sh mkauto.sh 2>/dev/null relver=`cat LATEST.VER` arcname="putty$arcsuffix" @@ -58,6 +61,7 @@ find . -name uxarc -prune -o \ -name CVS -prune -o \ -name .cvsignore -prune -o \ -name .svn -prune -o \ + -name configure.ac -prune -o \ -name '*.zip' -prune -o \ -name '*.tar.gz' -prune -o \ -type f -exec ln -s $PWD/{} uxarc/$arcname/{} \; @@ -66,5 +70,8 @@ if test "x$ver" != "x"; then md5sum `find . -name '*.[ch]' -print` > manifest; echo "$ver" > version.def) fi +sed "s/^AC_INIT(putty,.*/AC_INIT(putty, $autoconfver)/" unix/configure.ac > uxarc/$arcname/unix/configure.ac +(cd uxarc/$arcname && sh mkauto.sh) 2>errors || { cat errors >&2; exit 1; } + tar -C uxarc -chzof $arcname.tar.gz $arcname rm -rf uxarc |