Get Nightly WebKit without SVN

WebKit Icon

Everyone agrees that WebKit is the faster browser engine. Plus its my favourite browser/engine in OSX

Problem is that it doesn’t update itself automatically – and every night there’s a beautiful new build that comes out – which I simply must have.

So in order to save you time – here’s a little script that I put together this afternoon that will download the latest build at the push of a button.

Initially I wrote it with wget, but realised not everyone will have it installed – hence here’s a version with curl


# - Obtain the latest WebKit build
# Created by Roman Tarnavski on 2008-04-13.
# For an updated version head to
# Distributed under a Creative Commons Attribution 3.0 License
# For more details on the license:


echo -n "Downloading WebPage ..."
curl -o ${var_dir}index.html > .get_webkit.log 2>&1
nightly=`cat ${var_dir}index.html | grep ".dmg" | cut -d '"' -f 2 | uniq`
echo "Done"

filename=`echo $nightly | cut -d '/' -f 5`

echo -n "Getting WebKit ..."
curl $location$nightly -o $var_dir$filename >> .get_webkit.log 2>&1
echo "Done"

if [ $? ]; then
echo -n "Installing WebKit ..."
rm -rf /Applications/
hdiutil attach -quiet "$var_dir$filename"
cp -R /Volumes/WebKit/ /Applications/
hdiutil detach -quiet /Volumes/WebKit
echo "Done"
exit 0

if (( $? )); then rm ${var_dir}index.html && rm $var_dir$filename ; fi

 Grab it and let me know how you go