mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-10 09:58:01 +00:00
ba793c905f
breaks netatalk-based setups (which _swap_ LF and CR). Instead, setfile.sh (which I have to run _anyway_ on OS X) copies mkputty.mpw to mk.mpw and then makes that CR-based. [originally from svn r5271]
26 lines
776 B
Bash
Executable File
26 lines
776 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Shell script to be run on Mac OS X, which uses `SetFile' to set
|
|
# up the appropriate file metadata so that you can run MPW and have
|
|
# it build classic-Mac PuTTY.
|
|
|
|
SETFILE=/Developer/Tools/SetFile
|
|
|
|
# I want to be able to run this either from the `mac' subdirectory
|
|
# or from the main `putty' source directory.
|
|
if test -f mac_res.r -a -f ../putty.h; then
|
|
cd ..
|
|
fi
|
|
if test ! -f putty.h; then
|
|
echo 'putty.h not found.' >&2
|
|
echo 'This script should be run in the PuTTY source directory.' >&2
|
|
exit 1
|
|
fi
|
|
|
|
# Now we can assume we're in the main PuTTY source dir.
|
|
find . -name .svn -prune -o -name '*.[chr]' -exec $SETFILE -t TEXT {} \;
|
|
|
|
# CR-ise mkputty.mpw and set the new version to TEXT.
|
|
tr '\n' '\r' < mac/mkputty.mpw > mac/mk.mpw
|
|
$SETFILE -t TEXT mac/mk.mpw
|