shell script to download webkit nightly build


/ Published in: Other
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.