99c65416 |
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 {} \; |
9aab0005 |
22 | |
23 | # CR-ise mkputty.mpw and set the new version to TEXT. |
24 | tr '\n' '\r' < mac/mkputty.mpw > mac/mk.mpw |
25 | $SETFILE -t TEXT mac/mk.mpw |