| 1 | #!/bin/sh |
| 2 | perl mkfiles.pl |
| 3 | # These are text files. |
| 4 | text=`{ find . -name CVS -prune -o \ |
| 5 | -name .cvsignore -prune -o \ |
| 6 | -name .svn -prune -o \ |
| 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/^\.\///'; } | \ |
| 13 | grep -ivE 'testdata/.*\.txt|MODULE|putty.iss|website.url' | grep -vF .ico | grep -vF .icns` |
| 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. |
| 20 | bin=`{ ls -1 windows/*.ico windows/putty.iss windows/website.url macosx/*.icns; \ |
| 21 | find . -name '*.dsp' -print -o -name '*.dsw' -print; }` |
| 22 | zip -k -l putty-src.zip $text > /dev/null |
| 23 | zip -k -l putty-src.zip $bintext > /dev/null 2>&1 |
| 24 | zip -k putty-src.zip $bin > /dev/null |