mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-09 17:38:00 +00:00
b08895f02c
The Xcode icon composer doesn't seem to exist any more in modern versions of Xcode, or at least if it does then it's well hidden and certainly doesn't live at the top-level path at /Developer where web pages still claim it can be found. There is a free software 'libicns' and associated command-line tools, but they're large, complicated, picky about the exact format of PNGs they get as input, and in any case a needless extra build dependency when it turns out the important parts of the file format can be done in a few dozen lines of Python. So here's a new macicon.py, and icons/Makefile additions to build a demo icon for OS X PuTTY, as and when I finally get it working. Also I've deleted the static icon file in the neglected 'macosx' source directory, because this one is better anyway - the old one was appalling quality, and must have been autogenerated from a single image in some way.
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; \
|
|
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
|