Skip to content

Instantly share code, notes, and snippets.

@joefiorini
Created May 19, 2009 21:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save joefiorini/114428 to your computer and use it in GitHub Desktop.
Save joefiorini/114428 to your computer and use it in GitHub Desktop.
#!/bin/bash
set -e
BUILD_URL='http://build.chromium.org/buildbot/snapshots/sub-rel-mac/'
update_google_chrome() {
get_latest_revision_number
download_latest_revision
extract_code
install_chrome
display_latest_changes
}
get_latest_revision_number() {
LATEST=`curl $BUILD_URL/LATEST`
}
download_latest_revision() {
(cd ~/src &&
curl -O $BUILD_URL/$LATEST/chrome-mac.zip)
}
extract_code() {
(cd ~/src &&
unzip -qq chrome-mac.zip)
}
install_chrome() {
(cd ~/src/chrome-mac &&
cp -fr Chromium.app /Applications &&
cd .. &&
rm -rf chrome-mac)
}
display_latest_changes() {
curl $BUILD_URL/$LATEST/changelog.xml
}
update_google_chrome
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment