Skip to content

Instantly share code, notes, and snippets.

@hakobe
Created January 14, 2010 06:29
Show Gist options
  • Select an option

  • Save hakobe/276951 to your computer and use it in GitHub Desktop.

Select an option

Save hakobe/276951 to your computer and use it in GitHub Desktop.
#!/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