mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-09 17:38:00 +00:00
febb180113
It was intended to ensure that people still working with DOS filename restrictions (or things approximating that, e.g. VFAT) wouldn't have trouble. Those days are surely long gone, and now zip -k is causing its own trouble with the new VS2010/VS2012 project files, which include pairs of filenames that become the same under the zip -k transformation and hence break the source archive build. [originally from svn r10155]
34 lines
1.1 KiB
Bash
Executable File
34 lines
1.1 KiB
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
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 '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; }`
|
|
|
|
verbosely() {
|
|
echo "$@"
|
|
"$@"
|
|
}
|
|
|
|
verbosely zip -l putty-src.zip $text
|
|
verbosely zip -l putty-src.zip $bintext
|
|
verbosely zip putty-src.zip $bin
|