]> asedeno.scripts.mit.edu Git - PuTTY.git/blob - mksrcarc.sh
first pass
[PuTTY.git] / mksrcarc.sh
1 #!/bin/sh
2
3 set -e
4
5 perl mkfiles.pl
6 # These are text files.
7 text=`{ find . -name CVS -prune -o \
8                -name .cvsignore -prune -o \
9                -name .svn -prune -o \
10                -name LATEST.VER -prune -o \
11                -name CHECKLST.txt -prune -o \
12                -name mksrcarc.sh -prune -o \
13                -name '*.dsp' -prune -o \
14                -name '*.dsw' -prune -o \
15                -type f -print | sed 's/^\.\///'; } | \
16       grep -ivE 'testdata/.*\.txt|MODULE|putty.iss|website.url' | grep -vF .ico | grep -vF .icns`
17 # These are files which I'm _sure_ should be treated as text, but
18 # which zip might complain about, so we direct its moans to
19 # /dev/null! Apparently its heuristics are doubtful of UTF-8 text
20 # files.
21 bintext=testdata/*.txt
22 # These are actual binary files which we don't want transforming.
23 bin=`{ ls -1 windows/*.ico windows/putty.iss windows/website.url; \
24        find . -name '*.dsp' -print -o -name '*.dsw' -print; }`
25
26 verbosely() {
27     echo "$@"
28     "$@"
29 }
30
31 verbosely zip -l putty-src.zip $text
32 verbosely zip -l putty-src.zip $bintext
33 verbosely zip putty-src.zip $bin