Created
January 14, 2010 06:29
-
-
Save hakobe/276951 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
| cd /tmp | |
| echo "Checking for update" | |
| wget http://build.chromium.org/buildbot/snapshots/chromium-rel-mac/LATEST \ | |
| -O chromium_rev | |
| CUR=`cat chromium_rev` | |
| PREV=`cat chromium_rev_old` | |
| if [ $CUR -eq $PREV ]; then | |
| echo 'Not updated' | |
| exit | |
| fi | |
| echo "Start updating Chromium from $PREV to $CUR" | |
| echo "Press Enter to see changelogs: " | |
| read | |
| svn -r $PREV:$CUR log http://src.chromium.org/svn/trunk/src | lv | |
| echo "Please exit Chromium.... Press any key twice" | |
| read | |
| read | |
| wget "http://build.chromium.org/buildbot/snapshots/chromium-rel-mac/$CUR/chrome-mac.zip" \ | |
| -O chrome-mac.zip | |
| unzip chrome-mac.zip | |
| # DANGER | |
| rm -r /Applications/Chromium.app | |
| mv chrome-mac/Chromium.app /Applications | |
| rm -r /tmp/chrome-mac/ | |
| mv chromium_rev chromium_rev_old | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment