X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=mksrcarc.sh;h=eb15407a8ee41ab0717b12834916dd0982495991;hb=c8f2b65d166047d0bad013a73003e7e057792d15;hp=e955d33c3f5478515f86d5a3240545e1a1b89baa;hpb=5a11f1856971b228deca7bf63a32dc7c5c5dcb97;p=PuTTY.git diff --git a/mksrcarc.sh b/mksrcarc.sh index e955d33c..eb15407a 100755 --- a/mksrcarc.sh +++ b/mksrcarc.sh @@ -1,15 +1,24 @@ #!/bin/sh perl mkfiles.pl +# These are text files. text=`{ find . -name CVS -prune -o \ -name .cvsignore -prune -o \ + -name .svn -prune -o \ -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/^\.\///'; } | \ - grep -ivE MODULE\|putty.iss\|website.url | grep -vF .ico` -bin=`{ ls -1 *.ico putty.iss website.url; \ + grep -ivE 'testdata/.*\.txt|MODULE|putty.iss|website.url' | grep -vF .ico | grep -vF .icns` +# 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. +bin=`{ ls -1 windows/*.ico windows/putty.iss windows/website.url macosx/*.icns; \ find . -name '*.dsp' -print -o -name '*.dsw' -print; }` zip -k -l putty-src.zip $text > /dev/null +zip -k -l putty-src.zip $bintext >& /dev/null zip -k putty-src.zip $bin > /dev/null