When we check for libX11 in the autoconf script, add it to $GTK_LIBS
[u/mdw/putty] / mkunxarc.sh
CommitLineData
2299e1bb 1#!/bin/bash
8b4e077f 2
3# Build a Unix source distribution from the PuTTY CVS area.
4#
5# Pass an argument of the form `2004-02-08' to have the archive
6# tagged as a development snapshot; of the form `0.54' to have it
6cac7502 7# tagged as a release; of the form `r1234' to have it tagged as a
8# custom build. Otherwise it'll be tagged as unidentified.
8b4e077f 9
10case "$1" in
11 ????-??-??)
12 case "$1" in *[!-0-9]*) echo "Malformed snapshot ID '$1'" >&2;exit 1;;esac
13 arcsuffix="-`cat LATEST.VER`-$1"
14 ver="-DSNAPSHOT=$1"
6cac7502 15 docver=
16 ;;
17 r*)
18 arcsuffix="-$1"
2299e1bb 19 ver="-DSVN_REV=${1#r}"
3b62690e 20 docver=
8b4e077f 21 ;;
22 '')
23 arcsuffix=
24 ver=
3b62690e 25 docver=
8b4e077f 26 ;;
27 *)
28 case "$1" in *[!.0-9a-z]*) echo "Malformed release ID '$1'">&2;exit 1;;esac
29 arcsuffix="-$1"
30 ver="-DRELEASE=$1"
3b62690e 31 docver="VERSION=\"PuTTY release $1\""
8b4e077f 32 ;;
33esac
34
35perl mkfiles.pl
3b62690e 36(cd doc && make -s ${docver:+"$docver"})
865b3d6b 37sh mkauto.sh 2>/dev/null
8b4e077f 38
39relver=`cat LATEST.VER`
40arcname="putty$arcsuffix"
41mkdir uxarc
42mkdir uxarc/$arcname
2ce79856 43find . -name uxarc -prune -o \
44 -name CVS -prune -o \
45 -name .svn -prune -o \
46 -name . -o \
8b4e077f 47 -type d -exec mkdir uxarc/$arcname/{} \;
48find . -name uxarc -prune -o \
49 -name CVS -prune -o \
50 -name .cvsignore -prune -o \
4494be0a 51 -name .svn -prune -o \
8b4e077f 52 -name '*.zip' -prune -o \
53 -name '*.tar.gz' -prune -o \
54 -type f -exec ln -s $PWD/{} uxarc/$arcname/{} \;
55if test "x$ver" != "x"; then
56 (cd uxarc/$arcname;
57 md5sum `find . -name '*.[ch]' -print` > manifest;
58 echo "$ver" > version.def)
59fi
a8a420c5 60tar -C uxarc -chzof $arcname.tar.gz $arcname
8b4e077f 61rm -rf uxarc