8b6265bf5d30614245dbbb35f59870a0eca260b9
3 # Build a Unix source distribution from the Puzzles SVN area.
5 # Pass a numeric argument to have the archive tagged as that SVN
6 # revision. Otherwise, the script will work it out itself by
7 # calling `svnversion', or failing that it will not version-tag the
12 # Ignore errors; if we can't get a version, we'll have a blank
14 rev=`svnversion . 2>/dev/null`
17 case "$1" in *[!0-9]*) echo "Malformed revision number '$1'">&2;exit 1;;esac
22 if test "x$rev" != "x"; then
31 make -s
-f Makefile.doc
33 arcname
="puzzles$arcsuffix"
36 find .
-name uxarc
-prune
-o \
38 -name
'*.app' -prune
-o \
39 -name
'.[^.]*' -prune
-o \
41 -type d
-exec mkdir uxarc
/$arcname/{} \
;
42 find .
-name uxarc
-prune
-o \
44 -name
'.[^.]*' -prune
-o \
45 -name
'*.app' -prune
-o \
46 -name
'*.zip' -prune
-o \
47 -name
'*.tar.gz' -prune
-o \
48 -type f
-exec ln -s
$PWD/{} uxarc
/$arcname/{} \
;
49 if test "x$ver" != "x"; then
51 md5sum `find . -name '*.[ch]' -print` > manifest
;
52 echo "$ver" > version.def
)
54 tar -C uxarc
-chzof
$arcname.
tar.gz
$arcname