6 # These are text files.
7 text=`{ find . -name CVS -prune -o \
8 -name .cvsignore -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
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 macosx/*.icns; \
24 find . -name '*.dsp' -print -o -name '*.dsw' -print; }`
31 verbosely zip -l putty-src.zip $text
32 verbosely zip -l putty-src.zip $bintext
33 verbosely zip putty-src.zip $bin