2004-01-17 17:17:21 +03:00
|
|
|
#!/bin/sh
|
2014-03-05 02:56:04 +04:00
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2004-01-17 17:17:21 +03:00
|
|
|
perl mkfiles.pl
|
2004-12-18 13:00:27 +03:00
|
|
|
# These are text files.
|
2004-01-17 17:17:21 +03:00
|
|
|
text=`{ find . -name CVS -prune -o \
|
|
|
|
-name .cvsignore -prune -o \
|
2004-11-16 21:01:39 +03:00
|
|
|
-name .svn -prune -o \
|
2004-01-17 17:17:21 +03:00
|
|
|
-name LATEST.VER -prune -o \
|
|
|
|
-name CHECKLST.txt -prune -o \
|
|
|
|
-name mksrcarc.sh -prune -o \
|
|
|
|
-name '*.dsp' -prune -o \
|
|
|
|
-name '*.dsw' -prune -o \
|
|
|
|
-type f -print | sed 's/^\.\///'; } | \
|
2005-03-11 12:07:37 +03:00
|
|
|
grep -ivE 'testdata/.*\.txt|MODULE|putty.iss|website.url' | grep -vF .ico | grep -vF .icns`
|
2004-12-18 13:00:27 +03:00
|
|
|
# These are files which I'm _sure_ should be treated as text, but
|
|
|
|
# which zip might complain about, so we direct its moans to
|
|
|
|
# /dev/null! Apparently its heuristics are doubtful of UTF-8 text
|
|
|
|
# files.
|
|
|
|
bintext=testdata/*.txt
|
|
|
|
# These are actual binary files which we don't want transforming.
|
2005-03-11 12:07:37 +03:00
|
|
|
bin=`{ ls -1 windows/*.ico windows/putty.iss windows/website.url macosx/*.icns; \
|
2004-01-17 17:17:21 +03:00
|
|
|
find . -name '*.dsp' -print -o -name '*.dsw' -print; }`
|
2014-03-05 02:56:03 +04:00
|
|
|
|
|
|
|
verbosely() {
|
|
|
|
echo "$@"
|
|
|
|
"$@"
|
|
|
|
}
|
|
|
|
|
2014-03-05 02:56:08 +04:00
|
|
|
verbosely zip -l putty-src.zip $text
|
|
|
|
verbosely zip -l putty-src.zip $bintext
|
|
|
|
verbosely zip putty-src.zip $bin
|