]> asedeno.scripts.mit.edu Git - PuTTY.git/blob - mac/setfile.sh
da5b990ad29becdc4552a9410a7064a12467e009
[PuTTY.git] / mac / setfile.sh
1 #!/bin/sh 
2
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.
6
7 SETFILE=/Developer/Tools/SetFile
8
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
12   cd ..
13 fi
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
17   exit 1
18 fi
19
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