3 # Build a Unix source distribution from the PuTTY CVS area.
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
11 case "$1" in *[!-0-9]*) echo "Malformed snapshot ID '$1'" >&2;exit 1;;esac
12 arcsuffix
="-`cat LATEST.VER`-$1"
22 case "$1" in *[!.0-9a-z
]*) echo "Malformed release ID '$1'">&2;exit 1;;esac
25 docver
="VERSION=\"PuTTY release $1\""
30 (cd doc
&& make -s
${docver:+"$docver"})
31 # Track down automake's copy of install-sh
32 cp `aclocal --print-ac-dir | sed 's/aclocal$/automake/'`/install-sh unix
/.
33 (cd unix
&& autoreconf
&& rm -rf aclocal.
m4 autom4te.cache
)
35 relver
=`cat LATEST.VER`
36 arcname
="putty$arcsuffix"
39 find .
-name uxarc
-prune
-o \
41 -name .svn
-prune
-o \
43 -type d
-exec mkdir uxarc
/$arcname/{} \
;
44 find .
-name uxarc
-prune
-o \
46 -name .cvsignore
-prune
-o \
47 -name .svn
-prune
-o \
48 -name
'*.zip' -prune
-o \
49 -name
'*.tar.gz' -prune
-o \
50 -type f
-exec ln -s
$PWD/{} uxarc
/$arcname/{} \
;
51 if test "x$ver" != "x"; then
53 md5sum `find . -name '*.[ch]' -print` > manifest
;
54 echo "$ver" > version.def
)
56 tar -C uxarc
-chzof
$arcname.
tar.gz
$arcname