<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>RomanT.net &#187; nightly</title>
	<atom:link href="http://blog.romant.net/tag/nightly/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.romant.net</link>
	<description>… hilariously not funny</description>
	<lastBuildDate>Fri, 25 Nov 2011 01:09:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Get Nightly WebKit without SVN</title>
		<link>http://blog.romant.net/technology/get-nightly-webkit-without-svn/</link>
		<comments>http://blog.romant.net/technology/get-nightly-webkit-without-svn/#comments</comments>
		<pubDate>Sun, 13 Apr 2008 08:59:22 +0000</pubDate>
		<dc:creator>Roman Tarnavski</dc:creator>
				<category><![CDATA[technology]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[nightly]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[webkit]]></category>

		<guid isPermaLink="false">http://www.romant.net/?p=101</guid>
		<description><![CDATA[Download Nightly WebKit build for OSX without SVN. Automated webkit downloading ]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft" style="float: left;" src="http://blog.romant.net/wp-content/uploads/2008/04/webkit-icon.png" alt="WebKit Icon" width="128" height="128" /></p>
<p>Everyone agrees that <a href="http://www.webkit.org/">WebKit</a> is the <a href="http://blogs.computerworld.com/safari_is_about_to_get_crazy_fast">faster</a> browser engine. Plus its my favourite browser/engine in OSX</p>
<p>Problem is that it doesn&#8217;t update itself automatically &#8211; and every night there&#8217;s a beautiful new build that comes out &#8211; which I simply must have.</p>
<p>So in order to save you time &#8211; here&#8217;s a little script that I put together this afternoon that will download the latest build at the push of a button.</p>
<p>Initially I wrote it with wget, but realised not everyone will have it installed &#8211; hence here&#8217;s a version with curl<br />
<br/><br />
<code><br />
#!/bin/bash</p>
<p>#  getWebKit.sh - Obtain the latest WebKit build<br />
#<br />
#  Created by Roman Tarnavski on 2008-04-13.<br />
#  For an updated version head to www.romant.net<br />
#<br />
#<br />
#  Distributed under a Creative Commons Attribution 3.0 License<br />
#  For more details on the license: http://creativecommons.org/licenses/by/3.0/</p>
<p>var_dir="/var/tmp/"</p>
<p>echo -n "Downloading WebPage ..."<br />
location="http://nightly.webkit.org"<br />
curl http://nightly.webkit.org/index.html -o ${var_dir}index.html > .get_webkit.log 2>&#038;1<br />
nightly=`cat ${var_dir}index.html | grep ".dmg" | cut -d '"' -f 2 | uniq`<br />
echo "Done"</p>
<p>filename=`echo $nightly | cut -d '/' -f 5`</p>
<p>echo -n "Getting WebKit ..."<br />
curl $location$nightly -o $var_dir$filename >> .get_webkit.log 2>&#038;1<br />
echo "Done"</p>
<p>if [ $? ]; then<br />
	echo -n "Installing WebKit ..."<br />
	rm -rf /Applications/WebKit.app<br />
	hdiutil attach -quiet "$var_dir$filename"<br />
	cp -R /Volumes/WebKit/WebKit.app /Applications/<br />
	hdiutil detach -quiet /Volumes/WebKit<br />
	echo "Done"<br />
	exit 0<br />
fi</p>
<p>#cleanup<br />
if (( $? )); then rm ${var_dir}index.html &#038;&#038; rm $var_dir$filename ; fi</p>
<p></code></p>
<p> <a href="http://blog.romant.net/wp-content/uploads/2008/04/getWebKit.sh">Grab it</a> and let me know how you go</p>
<p> <!-- PHP 5.x --></p>

	Tags: <a href="http://blog.romant.net/tag/bash/" title="bash" rel="tag">bash</a>, <a href="http://blog.romant.net/tag/nightly/" title="nightly" rel="tag">nightly</a>, <a href="http://blog.romant.net/tag/osx/" title="osx" rel="tag">osx</a>, <a href="http://blog.romant.net/tag/script/" title="script" rel="tag">script</a>, <a href="http://blog.romant.net/tag/webkit/" title="webkit" rel="tag">webkit</a><br />
]]></content:encoded>
			<wfw:commentRss>http://blog.romant.net/technology/get-nightly-webkit-without-svn/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

