]> asedeno.scripts.mit.edu Git - PuTTY.git/blob - mksrcarc.sh
Have mksrcarc.sh log its activity to standard output.
[PuTTY.git] / mksrcarc.sh
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
23 verbosely() {
24     echo "$@"
25     "$@"
26 }
27
28 verbosely zip -k -l putty-src.zip $text
29 verbosely zip -k -l putty-src.zip $bintext
30 verbosely zip -k putty-src.zip $bin