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)

#/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.