3 # Build a Unix source distribution from the PuTTY CVS area.
5 # Expects the following arguments:
6 # - the version number to write into configure.ac
7 # - the suffix to put on the Unix source tarball
8 # - the options to put on the 'make' command line for the docs
15 (cd doc && make -s ${docver:+"$docver"})
17 relver=`cat LATEST.VER`
18 arcname="putty$arcsuffix"
21 find . -name uxarc -prune -o \
23 -name .svn -prune -o \
25 -type d -exec mkdir uxarc/$arcname/{} \;
26 find . -name uxarc -prune -o \
28 -name .cvsignore -prune -o \
29 -name .svn -prune -o \
30 -name configure.ac -prune -o \
31 -name '*.zip' -prune -o \
32 -name '*.tar.gz' -prune -o \
33 -type f -exec ln -s $PWD/{} uxarc/$arcname/{} \;
34 sed "s/^AC_INIT(putty,.*/AC_INIT(putty, $autoconfver)/" configure.ac > uxarc/$arcname/configure.ac
35 (cd uxarc/$arcname && sh mkauto.sh) 2>errors || { cat errors >&2; exit 1; }
37 tar -C uxarc -chzof $arcname.tar.gz $arcname