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"
20 case "$1" in *[!.0-9a-z
]*) echo "Malformed release ID '$1'">&2;exit 1;;esac
28 relver
=`cat LATEST.VER`
29 arcname
="putty$arcsuffix"
32 find .
-name uxarc
-prune
-o
-name .
-o \
33 -type d
-exec mkdir uxarc
/$arcname/{} \
;
34 find .
-name uxarc
-prune
-o \
36 -name .cvsignore
-prune
-o \
37 -name
'*.zip' -prune
-o \
38 -name
'*.tar.gz' -prune
-o \
39 -type f
-exec ln -s
$PWD/{} uxarc
/$arcname/{} \
;
40 if test "x$ver" != "x"; then
42 md5sum `find . -name '*.[ch]' -print` > manifest
;
43 echo "$ver" > version.def
)
45 tar -C uxarc
-chzf
- $arcname > $arcname.
tar.gz