3 # Shell script to be run on Mac OS X, which uses `SetFile' to set
4 # up the appropriate file metadata so that you can run MPW and have
5 # it build classic-Mac PuTTY.
7 SETFILE=/Developer/Tools/SetFile
9 # I want to be able to run this either from the `mac' subdirectory
10 # or from the main `putty' source directory.
11 if test -f mac_res.r -a -f ../putty.h; then
14 if test ! -f putty.h; then
15 echo 'putty.h not found.' >&2
16 echo 'This script should be run in the PuTTY source directory.' >&2
20 # Now we can assume we're in the main PuTTY source dir.
21 find . -name .svn -prune -o -name '*.[chr]' -exec $SETFILE -t TEXT {} \;
22 $SETFILE -t TEXT mac/mkputty.mpw