]> asedeno.scripts.mit.edu Git - PuTTY.git/blob - mkunxarc.sh
first pass
[PuTTY.git] / mkunxarc.sh
1 #!/bin/sh
2
3 # Build a Unix source distribution from the PuTTY CVS area.
4 #
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
9
10 autoconfver="$1"
11 arcsuffix="$2"
12 docver="$3"
13
14 perl mkfiles.pl
15 (cd doc && make -s ${docver:+"$docver"})
16
17 relver=`cat LATEST.VER`
18 arcname="putty$arcsuffix"
19 mkdir uxarc
20 mkdir uxarc/$arcname
21 find . -name uxarc -prune -o \
22        -name CVS -prune -o \
23        -name .svn -prune -o \
24        -name . -o \
25        -type d -exec mkdir uxarc/$arcname/{} \;
26 find . -name uxarc -prune -o \
27        -name CVS -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; }
36
37 tar -C uxarc -chzof $arcname.tar.gz $arcname
38 rm -rf uxarc