Skip to content

Instantly share code, notes, and snippets.

@timsutton
Created November 16, 2012 15:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timsutton/4088346 to your computer and use it in GitHub Desktop.
Save timsutton/4088346 to your computer and use it in GitHub Desktop.
# 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