Commit dfc4c53e authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

Use cp -R instead of CpMac -r in the macosx-dmg script on Mac OS X 10.4

parent 43410ee3
......@@ -36,10 +36,23 @@ dev=`hdid -nomount "${imgName}.dmg" | grep '/dev/disk[0-9]*' | cut -d " " -f 1`
mkdir ./mountpoint
mount -t hfs ${dev} ./mountpoint
HOSTMACHINE=`gcc -dumpmachine`
case $HOSTMACHINE in
ppc-darwin)
# Mac OS X < 10.4
CP="/Developer/Tools/CpMac -r"
CPR="-r"
;;
*)
CP="cp -R"
CPR="-R"
;;
esac
echo "Copying contents to ${imgName}:"
for i in ${dirName}/* ; do
echo " ${i}"
/Developer/Tools/CpMac -r "${i}" ./mountpoint
${CP} "${i}" ./mountpoint
done
umount ./mountpoint
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment