Posted By

johnloy on 04/23/09


Tagged

textmate Shell unix browsers Installer webkit


Versions (?)

shell script to download webkit nightly build


 / Published in: Other
 

  1. #!/bin/sh
  2.  
  3. tmpdir=/tmp/webkit-nightly
  4. URL=$(curl http://nightly.webkit.org/ | grep dmg | head -1 | perl -pe 's/.*(http.*dmg).*/$1/')
  5. FILE=$(basename $URL)
  6. mkdir -p $tmpdir &&
  7. cd $tmpdir &&
  8. curl $URL --remote-name &&
  9. hdiutil attach -quiet $tmpdir/$FILE &&
  10. mv /Applications/WebKit.app ~/.Trash/WebKit-`date +%Y-%m-%d_%H-%M-%s`.app/ &&
  11. cp -R /Volumes/WebKit/WebKit.app /Applications/ &&
  12. hdiutil detach -quiet /Volumes/WebKit &&
  13. echo Installed $FILE
  14.  

Report this snippet  

You need to login to post a comment.