<?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>benwatts.ca &#187; time-saver</title>
	<atom:link href="http://www.benwatts.ca/tag/time-saver/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.benwatts.ca</link>
	<description>The crazy ramblings of designer/web developer Ben Watts.</description>
	<lastBuildDate>Sun, 05 Sep 2010 01:49:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1-alpha</generator>
		<item>
		<title>Auto-Update SVN Bash Script</title>
		<link>http://www.benwatts.ca/2008/04/26/charizard-bash-script/</link>
		<comments>http://www.benwatts.ca/2008/04/26/charizard-bash-script/#comments</comments>
		<pubDate>Sat, 26 Apr 2008 19:00:09 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[Back-end]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[time-saver]]></category>

		<guid isPermaLink="false">http://www.rainiscold.ca/seaturtle/?p=10</guid>
		<description><![CDATA[I&#8217;ve got at least 4 installs of WordPress on my server and I have them all checked out from WordPress&#8217; SVN repository because uploading WordPress files whenever there is an update is incredibly annoying. I know this means I may be using unstable and unreliable code and all that, but so far I haven&#8217;t had [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve got at least 4 installs of WordPress on my server and I have them all checked out from WordPress&#8217; SVN repository because uploading WordPress files whenever there is an update is incredibly annoying.</p>
<p>I know this means I may be using unstable and unreliable code and all that, but so far I haven&#8217;t had much of an issue. Worst case scenario I have to do a server rollback or something.</p>
<p>But anyway, having something like 4 SVN WordPress Installs it&#8217;s become apparent that I need an easier solution to running svn update on all the directories.<br />
SO I MADE A BASH SCRIPT.</p>
<h4> The Script</h4>
<pre lang="bash">
#!/bin/bash
# Updates all of my wordpress installations at once ...

echo '--Updating benwatts.ca';
cd ~/benwatts.ca
svn update

#[..] repeat for the other installs

echo "Done and done.";
</pre>
<h4>Storing the Script</h4>
<p>Then I created a bin folder in my user folder</p>
<div class="codecolorer-container text " style="overflow:auto;white-space:nowrap;width:540px"><div class="text codecolorer" style="font-family:Monaco,Lucida Console,monospace">mkdir ~/bin</div></div>
<p>and moved it there</p>
<div class="codecolorer-container text " style="overflow:auto;white-space:nowrap;width:540px"><div class="text codecolorer" style="font-family:Monaco,Lucida Console,monospace">mv ~/updatewordpress ~/bin/updatewordpress</div></div>
<p>.</p>
<h4>Using it</h4>
<p>Unfortunately, to use it you have to specify the path (so &#8230;</p>
<div class="codecolorer-container text " style="overflow:auto;white-space:nowrap;width:540px"><div class="text codecolorer" style="font-family:Monaco,Lucida Console,monospace">cd ~/bin; ./updatewordpress</div></div>
<p>). That kind of sucks. Not a whole lot &#8230; but I wanted to be a bit adventurous and make it so that I just have to type &#8216;updatewordpress&#8217; and it&#8217;ll go ahead and do it. As it turns out, at least in my version of linux it already searches ~/bin for shell scripts &#8230; so all I had to do was log out and log back in again and now the command is there &#8230; NICE!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.benwatts.ca/2008/04/26/charizard-bash-script/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
