Created
November 16, 2012 15:45
-
-
Save timsutton/4088346 to your computer and use it in GitHub Desktop.
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
# assumes jenkins user is in sudoers | |
# assumes you have some InstallerDiscs available in /var/jenkins/discs | |
# assumes you'll clean up the workspace before the job starts, so that the svn checkout won't complain about a symlink where it expects a directory | |
# provide a TERM to satisfy instaUp2Date | |
export TERM=xterm | |
# get InstaDMG source | |
svn checkout http://instadmg.googlecode.com/svn/trunk instadmg-svn | |
# symlink the InstallerDiscs from the svn checkout to our repository of InstallerDisc dmgs | |
rm -rf instadmg-svn/InstallerFiles/InstallerDiscs | |
ln -s /var/jenkins/discs instadmg-svn/InstallerFiles/InstallerDiscs | |
# Run it, redirecting output to a temporary log location, so that instaUp2Date is happy | |
# in this case we're using our own repo's source and catalog folder for custom InstallerChoices and CatalogFiles | |
sudo instadmg-svn/AddOns/InstaUp2Date/instaUp2Date.py --add-source-folder=instadmg/InstallerChoices --add-catalog-folder=instadmg/CatalogFiles -p 10.7_vanilla > "/tmp/instaUp2Date_`date`.log" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment