Comment explaining location in top-level directory.
[u/mdw/putty] / mac / setfile.sh
CommitLineData
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
7SETFILE=/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.
11if test -f mac_res.r -a -f ../putty.h; then
12 cd ..
13fi
14if 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
18fi
19
20# Now we can assume we're in the main PuTTY source dir.
21find . -name .svn -prune -o -name '*.[chr]' -exec $SETFILE -t TEXT {} \;
22$SETFILE -t TEXT mac/mkputty.mpw