Created
October 14, 2013 04:07
-
-
Save younata/6970602 to your computer and use it in GitHub Desktop.
auto-update script for twIRCk
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
#!/bin/sh | |
pushd ~/foo/twIRCk/ # change this to wherever you keep your twIRCk sources. | |
git pull origin master | |
# removing the mac app store signing | |
cp TwIRCk.xcodeproj/project.pbxproj backup.pbxproj | |
sed '/CODE_SIGN_IDENTITY/d' < TwIRCk.xcodeproj/project.pbxproj >> new.pbxproj | |
mv new.pbxproj TwIRCk.xcodeproj/project.pbxproj | |
xcodebuild -target twIRCk | |
cp -r build/Release/twIRCk.app /Applications/ | |
mv backup.pbxproj TwIRCk.xcodeproj/project.pbxproj # undoing our change so that git doesn't bitch next time we pull. | |
popd | |
# Now just stick this in crontab to run every week or so! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment