xgmsv/yGenerateProjectFiles.command

15 lines
455 B
Plaintext
Raw Normal View History

2020-03-03 07:27:11 +08:00
# Simple wrapper around GenerateProjectFiles.sh using the
# .command extension enables it to be run from the OSX Finder.
currentDir="`dirname \"$0\"`"
cd ${currentDir}
currentFolder=${PWD##*/}
sh ${currentDir}/zGenerateProjectFiles.sh
osDir=:Macintosh\ HD${currentDir//[\/]/\:}
if ! [ -f "${currentFolder}.xcodeproj" ]; then
osascript -e "tell application \"Finder\" to make alias to \"${osDir}:Build:${currentFolder}.xcodeproj\" at \"${osDir}\""
fi