Return to Snippet

Revision: 13412
at April 23, 2009 07:00 by johnloy


Initial Code
#!/bin/sh

tmpdir=/tmp/webkit-nightly
URL=$(curl http://nightly.webkit.org/ | grep dmg | head -1 | perl -pe 's/.*(http.*dmg).*/$1/')
FILE=$(basename $URL)
mkdir -p $tmpdir &&
cd $tmpdir &&
curl $URL --remote-name &&
hdiutil attach -quiet $tmpdir/$FILE &&
mv /Applications/WebKit.app ~/.Trash/WebKit-`date +%Y-%m-%d_%H-%M-%s`.app/ &&
cp -R /Volumes/WebKit/WebKit.app /Applications/ &&
hdiutil detach -quiet /Volumes/WebKit &&
echo Installed $FILE

Initial URL


Initial Description


Initial Title
shell script to download webkit nightly build

Initial Tags
textmate, unix

Initial Language
Other