8c09f186 |
1 | #!/bin/sh |
2 | perl mkfiles.pl |
9ca4b2bb |
3 | # These are text files. |
8c09f186 |
4 | text=`{ find . -name CVS -prune -o \ |
5 | -name .cvsignore -prune -o \ |
4494be0a |
6 | -name .svn -prune -o \ |
8c09f186 |
7 | -name LATEST.VER -prune -o \ |
8 | -name CHECKLST.txt -prune -o \ |
9 | -name mksrcarc.sh -prune -o \ |
10 | -name '*.dsp' -prune -o \ |
11 | -name '*.dsw' -prune -o \ |
12 | -type f -print | sed 's/^\.\///'; } | \ |
9ca4b2bb |
13 | grep -ivE 'testdata/.*\.txt|MODULE|putty.iss|website.url' | grep -vF .ico` |
14 | # These are files which I'm _sure_ should be treated as text, but |
15 | # which zip might complain about, so we direct its moans to |
16 | # /dev/null! Apparently its heuristics are doubtful of UTF-8 text |
17 | # files. |
18 | bintext=testdata/*.txt |
19 | # These are actual binary files which we don't want transforming. |
bddeff64 |
20 | bin=`{ ls -1 windows/*.ico windows/putty.iss windows/website.url; \ |
8c09f186 |
21 | find . -name '*.dsp' -print -o -name '*.dsw' -print; }` |
22 | zip -k -l putty-src.zip $text > /dev/null |
9ca4b2bb |
23 | zip -k -l putty-src.zip $bintext >& /dev/null |
8c09f186 |
24 | zip -k putty-src.zip $bin > /dev/null |