Created
November 12, 2014 18:18
-
-
Save sundeepgupta/f137a2a9ebb377936cdd to your computer and use it in GitHub Desktop.
Mogenerator Build Script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd ${SOURCE_ROOT}/${PROJECT_NAME} | |
# Installed via Homebrew | |
if [ -e /usr/local/bin/mogenerator ] | |
then | |
/usr/local/bin/mogenerator --template-var arc=true -m Model.xcdatamodeld/Model.xcdatamodel -M Models/Machine -H Models/Human | |
exit | |
fi | |
# Installed via .dmg | |
if [ -e /usr/bin/mogenerator ] | |
then | |
/usr/bin/mogenerator --template-var arc=true -m Model.xcdatamodeld/Model.xcdatamodel -M Models/Machine -H Models/Human | |
exit | |
fi | |
# For this to work, you need to have Xcode 5 installed. Maybe when Xcode 6 is publicly released (not Beta), this may change. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment