As you may have heard Chromium is released for Linux in Alpha version, with daily builds available from here. Normally you would properly use the ubuntu repository if you wanted to live on the edge, getting the daily builds.
But if you, like me, are in the middle of a reading periode before your next exam, and needs an excuse for not reading, you might find youself writing a sh-script downloading the newest version (if it is not the one you got already)
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
#/bin/sh echo "Chromium daily build downloader"; echo "-------------------------------\n"; STARTDIR=`pwd` INSTALLDIR="$HOME/Desktop" CONFDIR="$HOME/.chrome" # Check if confdir exists if [ ! -d $CONFDIR ] then mkdir $CONFDIR echo "Configuration directory is created..." fi cd $CONFDIR if [ ! -e CURRENT ] then # If no current version is available (e.g. first download) OLDVERS=0 else OLDVERS=`cat CURRENT` fi if [ "$1" != "" ] # Get specific version then CVERS=$1 echo "$1" > NEW # Get newest version else wget -q http://build.chromium.org/buildbot/snapshots/chromium-rel-linux/LATEST -O NEW CVERS=`cat NEW` fi if [ "$CVERS" = "$OLDVERS" ] then echo "Already got the newest version: $OLDVERS"; rm NEW else echo "Downloading version: $CVERS, $((CVERS-OLDVERS)) revision(s) difference"; wget -q http://build.chromium.org/buildbot/snapshots/chromium-rel-linux/$CVERS/chrome-linux.zip if [ $? != 0 ] then echo "ERROR: Build number $CVERS could not be found" else echo "Unziping..."; unzip -q chrome-linux.zip -d $INSTALLDIR rm chrome-linux.zip mv NEW CURRENT fi fi cd $STARTDIR echo "\nDONE"; |
Hey look at that, now another five minutes went by without me doing any reading.