<?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>dan.thoughts &#187; auto delete and add</title>
	<atom:link href="http://blog.sosedoff.com/tag/auto-delete-and-add/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sosedoff.com</link>
	<description>Web-development, PHP, Ruby, Sinatra, Merb, Rails, MySQL, SQLite, Web Services.</description>
	<lastBuildDate>Tue, 07 Sep 2010 01:52:23 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>SVN auto add and delete</title>
		<link>http://blog.sosedoff.com/2009/01/16/svn-auto-add-and-delete/</link>
		<comments>http://blog.sosedoff.com/2009/01/16/svn-auto-add-and-delete/#comments</comments>
		<pubDate>Fri, 16 Jan 2009 13:55:44 +0000</pubDate>
		<dc:creator>Dan Sosedoff</dc:creator>
				<category><![CDATA[Shell Scripting]]></category>
		<category><![CDATA[Subversion]]></category>
		<category><![CDATA[auto delete and add]]></category>
		<category><![CDATA[autocommit]]></category>
		<category><![CDATA[commit]]></category>
		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://blog.sosedoff.com/?p=32</guid>
		<description><![CDATA[Bored of manually delete and add files to project? Ok, me too   So, i decided to make a simple command to work with command &#8220;svn commit&#8221;. All-in-one solution is:

#!/bin/bash
&#160;
echo &#34;processing files to add...&#34;
svn status &#124; grep “^?” &#124; sed -r ’s/^\?&#91; &#93;+//’ &#124; xargs -r svn add
&#160;
echo &#34;processing files to delete...&#34;
svn status &#124; [...]]]></description>
			<content:encoded><![CDATA[<p>Bored of manually delete and add files to project? Ok, me too <img src='http://blog.sosedoff.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  So, i decided to make a simple command to work with command &#8220;svn commit&#8221;. All-in-one solution is:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/bash</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;processing files to add...&quot;</span>
<span style="color: #c20cb9; font-weight: bold;">svn</span> status <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> “^?” <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #660033;">-r</span> ’s<span style="color: #000000; font-weight: bold;">/</span>^\?<span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>+<span style="color: #000000; font-weight: bold;">//</span>’ <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">xargs</span> <span style="color: #660033;">-r</span> <span style="color: #c20cb9; font-weight: bold;">svn</span> add
&nbsp;
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;processing files to delete...&quot;</span>
<span style="color: #c20cb9; font-weight: bold;">svn</span> status <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> “^<span style="color: #000000; font-weight: bold;">!</span>” <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #660033;">-r</span> ’s<span style="color: #000000; font-weight: bold;">/</span>^\<span style="color: #000000; font-weight: bold;">!</span><span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>+<span style="color: #000000; font-weight: bold;">//</span>’ <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">xargs</span> <span style="color: #660033;">-r</span> <span style="color: #c20cb9; font-weight: bold;">svn</span> delete
&nbsp;
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;processing commit...&quot;</span>
<span style="color: #c20cb9; font-weight: bold;">svn</span> commit</pre></div></div>

<p>Download bash script &#8211; <a href="http://files.sosedoff.com/62c99246/">http://files.sosedoff.com/62c99246/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sosedoff.com/2009/01/16/svn-auto-add-and-delete/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
