mkdir build
(cd build; tar xzf ../dist/${BUILD_NAME}.tar.gz)
-echo "[${BUILD_FOLDER}]"
cd ${BUILD_FOLDER}
-echo "$PWD"
echo ""
echo "=== Running python setup.py ==="
cd ${BASEDIR}
-pwd
rm dist/${DMG_NAME} > /dev/null
-echo -e "For some reason the game starts without a foreground window. Click on the icon in the dock (or minimize and restore from the menu) to get it back.\n\nIf this doesn't work, please let me (<firxen@gmail.com>) know, especially if you have any ideas about how to fix it.\n\nYou should also be able to use the unix tarball available at the same place you got this dmg.\n\nThanks." > ${BUILD_FOLDER}/dist/IMPORTANT\ NOTE.txt
+cat > ${BUILD_FOLDER}/dist/IMPORTANT\ NOTE.txt <<EOF
+For some reason the game starts without a foreground window. Click on the icon in the dock (or minimize and restore from the menu) to get it back.
+
+If this doesn't work, please let me (<firxen@gmail.com>) know, especially if you have any ideas about how to fix it.
+
+You should also be able to use the unix tarball available at the same place you got this dmg.
+
+Thanks.
+EOF
hdiutil create -volname ${GAME_NAME} -srcfolder ${BUILD_FOLDER}/dist/*.app/ -srcfolder ${BUILD_FOLDER}/dist/IMPORTANT\ NOTE.txt dist/${DMG_NAME}