<?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>Christoffer Kjølbæk &#187; SVN</title>
	<atom:link href="http://ostehamster.dk/blog/index.php/tag/svn/feed/" rel="self" type="application/rss+xml" />
	<link>http://ostehamster.dk/blog</link>
	<description>I have a blog, therefore I am…</description>
	<lastBuildDate>Sun, 18 Jul 2010 12:16:40 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9-rare</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>PHP function to get current SVN ID</title>
		<link>http://ostehamster.dk/blog/index.php/2010/07/18/php-function-to-get-current-svn-id/</link>
		<comments>http://ostehamster.dk/blog/index.php/2010/07/18/php-function-to-get-current-svn-id/#comments</comments>
		<pubDate>Sun, 18 Jul 2010 12:16:40 +0000</pubDate>
		<dc:creator>Christoffer Kjølbæk</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Howto]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Subversion]]></category>
		<category><![CDATA[SVN]]></category>

		<guid isPermaLink="false">http://ostehamster.dk/blog/?p=960</guid>
		<description><![CDATA[Make a function like the below in you PHP file

function get_rev&#40;&#41; &#123;
	return &#40;int&#41;substr&#40;substr&#40;'$Rev: 168 $', 6&#41;, 0, -2&#41;;
&#125;

And add the Revision keyword to the properties of the file

svn propset svn:keywords Revision your_file.php

"$Rev: 168 $" will then automatically be updated on every commit.
]]></description>
			<content:encoded><![CDATA[<p>Make a function like the below in you PHP file</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> get_rev<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #b1b100;">return</span> <span style="color: #009900;">&#40;</span>int<span style="color: #009900;">&#41;</span><span style="color: #990000;">substr</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">substr</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'$Rev: 168 $'</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">6</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span> <span style="color: #339933;">-</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>And add the Revision keyword to the properties of the file</p>

<div class="wp_syntax"><div class="code"><pre class="pre" style="font-family:monospace;">svn propset svn:keywords Revision your_file.php</pre></div></div>

<p>"$Rev: 168 $" will then automatically be updated on every commit.</p>
]]></content:encoded>
			<wfw:commentRss>http://ostehamster.dk/blog/index.php/2010/07/18/php-function-to-get-current-svn-id/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Howto use Eclipse with PHP and SVN in Ubuntu 9.10</title>
		<link>http://ostehamster.dk/blog/index.php/2009/11/01/howto-use-eclipse-with-php-and-svn-in-ubuntu-9-10/</link>
		<comments>http://ostehamster.dk/blog/index.php/2009/11/01/howto-use-eclipse-with-php-and-svn-in-ubuntu-9-10/#comments</comments>
		<pubDate>Sun, 01 Nov 2009 15:58:18 +0000</pubDate>
		<dc:creator>Christoffer Kjølbæk</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[Howto]]></category>
		<category><![CDATA[Karmic Koala]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[SVN]]></category>
		<category><![CDATA[Ubuntu 9.10]]></category>

		<guid isPermaLink="false">http://ostehamster.dk/blog/?p=473</guid>
		<description><![CDATA[This little guide will show how to set up Eclipse for developing PHP sites using PHP Development Tools Project and Subversion.
Install Eclipse Galileo from repository:
sudo apt-get install eclipse
A number of dependencies are required inside Eclipse, which has to be added. Start Eclipse from the menu, and select Help > Install new software... The below list [...]]]></description>
			<content:encoded><![CDATA[<p>This little guide will show how to set up Eclipse for developing PHP sites using <a href="http://www.eclipse.org/pdt/">PHP Development Tools Project</a> and Subversion.</p>
<p>Install Eclipse Galileo from repository:</p>
<blockquote><p>sudo apt-get install eclipse</p></blockquote>
<p>A number of dependencies are required inside Eclipse, which has to be added. Start Eclipse from the menu, and select Help > Install new software... The below list of update sites has to be added, which is done be typing the URL in "Work with", click Add and then type the name in the name field followed by Ok. Do this for the below update sites (name followed by URL):</p>
<p>EMF, <code>http://download.eclipse.org/modeling/emf/updates/releases/</code><br />
MyLyn, <code>http://download.eclipse.org/tools/mylyn/update/e3.4/</code><br />
GEF, <code>http://download.eclipse.org/tools/gef/updates/releases/</code><br />
DLTK, <code>http://download.eclipse.org/releases/galileo/</code><br />
Webtool, <code>http://download.eclipse.org/webtools/updates/</code></p>
<p><strong>PDT</strong><br />
Add <code>http://download.eclipse.org/tools/pdt/updates/2.0/</code> with name PDT. Open "PDT SDK 2.1.2" and select "PHP Development Tools (PDT) Runtime Feature", click Next twice, accept the license and click Finish.</p>
<p><strong>Subclipse</strong><br />
SVN integration (or one of them) in Eclipse is called <a href="http://subclipse.tigris.org/">Subclipse</a> and is installed through update sites as well.  Select Help > Install new software... and add <code>http://subclipse.tigris.org/update_1.6.x</code> into the "Work with" field and click Add type "Subclipse" in name and click Ok. Select all three options and click Next, Next, accept License and click Finish.</p>
<p><strong>Checking out a project</strong><br />
Select File -> New -> Other in the new window select SVN -> Checkout Projects from SVN and click Next.</p>
<p>Select "Create a new repository location", click Next. Type SVN repository in URL, click Next. Type username and password if required. Select the part of the repository containing the project, click Finish.</p>
<p>If the repository not already holds project settings for Eclipse, select "Check out as a project configured using the New Project Wizard" and click Finish. In the New Project Wizard select PHP -> PHP Project and click Next. Give the project a name and you are ready to go - have fun! :)</p>
]]></content:encoded>
			<wfw:commentRss>http://ostehamster.dk/blog/index.php/2009/11/01/howto-use-eclipse-with-php-and-svn-in-ubuntu-9-10/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Trac from SVN on Ubuntu 8.04 Hardy</title>
		<link>http://ostehamster.dk/blog/index.php/2008/04/23/trac-from-svn-on-ubuntu-804-hardy/</link>
		<comments>http://ostehamster.dk/blog/index.php/2008/04/23/trac-from-svn-on-ubuntu-804-hardy/#comments</comments>
		<pubDate>Wed, 23 Apr 2008 07:23:40 +0000</pubDate>
		<dc:creator>Christoffer Kjølbæk</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Hardy]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Howto]]></category>
		<category><![CDATA[SVN]]></category>
		<category><![CDATA[Trac]]></category>

		<guid isPermaLink="false">http://ostehamster.dk/blog/index.php/2008/04/23/trac-from-svn-on-ubuntu-804-hardy/</guid>
		<description><![CDATA[
svn co https://svn.edgewall.org/repos/trac/trunk trac
sudo apt-get install python-setuptools
sudo apt-get install python-subversion subversion python-pysqlite2 python-clearsilver
sudo python2.5 ./setup.py install


sudo mkdir /var/lib/svn/NAME
sudo trac-admin /var/lib/trac/NAME initenv
sudo trac-admin /var/lib/trac/NAME permission add USERNAME TRAC_ADMIN
sudo chown -R www-data /var/lib/trac/
sudo chown -R www-data /var/lib/svn/

Use the admin tool on the webpage to setup rights.
Apache2 setup:

 # Trac support
&#60;location /trac&#62;
   AuthType Basic
   [...]]]></description>
			<content:encoded><![CDATA[<p><code><br />
svn co https://svn.edgewall.org/repos/trac/trunk trac<br />
sudo apt-get install python-setuptools<br />
sudo apt-get install python-subversion subversion python-pysqlite2 python-clearsilver<br />
sudo python2.5 ./setup.py install<br />
</code></p>
<p><code><br />
sudo mkdir /var/lib/svn/NAME<br />
sudo trac-admin /var/lib/trac/NAME initenv<br />
sudo trac-admin /var/lib/trac/NAME permission add USERNAME TRAC_ADMIN<br />
sudo chown -R www-data /var/lib/trac/<br />
sudo chown -R www-data /var/lib/svn/<br />
</code></p>
<p>Use the admin tool on the webpage to setup rights.</p>
<p>Apache2 setup:<br />
<code><br />
 # Trac support<br />
&lt;location /trac&gt;<br />
   AuthType Basic<br />
   AuthName "Trac"<br />
   AuthUserFile /etc/apache2/dav_svn.passwd<br />
   Require valid-user</p>
<p>   SetHandler mod_python<br />
   PythonHandler trac.web.modpython_frontend<br />
   PythonOption TracEnvParentDir /var/lib/trac<br />
   PythonOption TracUriRoot "/trac"<br />
&lt;/location&gt;</code></p>
]]></content:encoded>
			<wfw:commentRss>http://ostehamster.dk/blog/index.php/2008/04/23/trac-from-svn-on-ubuntu-804-hardy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
