<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Ruby script for creating new rails project and initial SVN import (with ignoring/removing log/other files)</title>
	<atom:link href="http://webonrails.com/2007/02/08/ruby-script-for-creating-new-rails-project-and-initial-svn-import-with-ignoringremoving-logother-files/feed/" rel="self" type="application/rss+xml" />
	<link>http://webonrails.com/2007/02/08/ruby-script-for-creating-new-rails-project-and-initial-svn-import-with-ignoringremoving-logother-files/</link>
	<description>Its all about Ruby On Rails</description>
	<lastBuildDate>Thu, 11 Mar 2010 08:54:44 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Jerry</title>
		<link>http://webonrails.com/2007/02/08/ruby-script-for-creating-new-rails-project-and-initial-svn-import-with-ignoringremoving-logother-files/comment-page-1/#comment-266</link>
		<dc:creator>Jerry</dc:creator>
		<pubDate>Fri, 30 May 2008 13:20:11 +0000</pubDate>
		<guid isPermaLink="false">http://webonrails.com/2007/02/08/ruby-script-for-creating-new-rails-project-and-initial-svn-import-with-ignoringremoving-logother-files/#comment-266</guid>
		<description>Early bird gets the worm,</description>
		<content:encoded><![CDATA[<p>Early bird gets the worm,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sb</title>
		<link>http://webonrails.com/2007/02/08/ruby-script-for-creating-new-rails-project-and-initial-svn-import-with-ignoringremoving-logother-files/comment-page-1/#comment-265</link>
		<dc:creator>sb</dc:creator>
		<pubDate>Mon, 27 Aug 2007 15:22:29 +0000</pubDate>
		<guid isPermaLink="false">http://webonrails.com/2007/02/08/ruby-script-for-creating-new-rails-project-and-initial-svn-import-with-ignoringremoving-logother-files/#comment-265</guid>
		<description>The download link here is broken but don&#039;t worry, you can find a modified one here: http://topher.88-mph.net/2007/6/21/ruby-script-for-creating-a-rails-app</description>
		<content:encoded><![CDATA[<p>The download link here is broken but don&#8217;t worry, you can find a modified one here: <a href="http://topher.88-mph.net/2007/6/21/ruby-script-for-creating-a-rails-app" rel="nofollow">http://topher.88-mph.net/2007/6/21/ruby-script-for-creating-a-rails-app</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: osmos</title>
		<link>http://webonrails.com/2007/02/08/ruby-script-for-creating-new-rails-project-and-initial-svn-import-with-ignoringremoving-logother-files/comment-page-1/#comment-264</link>
		<dc:creator>osmos</dc:creator>
		<pubDate>Wed, 01 Aug 2007 05:30:21 +0000</pubDate>
		<guid isPermaLink="false">http://webonrails.com/2007/02/08/ruby-script-for-creating-new-rails-project-and-initial-svn-import-with-ignoringremoving-logother-files/#comment-264</guid>
		<description>This sounds good, but the download link doesn&#039;t work. Could you update the link or file?</description>
		<content:encoded><![CDATA[<p>This sounds good, but the download link doesn&#8217;t work. Could you update the link or file?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: alex</title>
		<link>http://webonrails.com/2007/02/08/ruby-script-for-creating-new-rails-project-and-initial-svn-import-with-ignoringremoving-logother-files/comment-page-1/#comment-263</link>
		<dc:creator>alex</dc:creator>
		<pubDate>Thu, 12 Apr 2007 20:03:47 +0000</pubDate>
		<guid isPermaLink="false">http://webonrails.com/2007/02/08/ruby-script-for-creating-new-rails-project-and-initial-svn-import-with-ignoringremoving-logother-files/#comment-263</guid>
		<description>hi nice site.</description>
		<content:encoded><![CDATA[<p>hi nice site.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom Chappell</title>
		<link>http://webonrails.com/2007/02/08/ruby-script-for-creating-new-rails-project-and-initial-svn-import-with-ignoringremoving-logother-files/comment-page-1/#comment-262</link>
		<dc:creator>Tom Chappell</dc:creator>
		<pubDate>Thu, 15 Feb 2007 03:05:04 +0000</pubDate>
		<guid isPermaLink="false">http://webonrails.com/2007/02/08/ruby-script-for-creating-new-rails-project-and-initial-svn-import-with-ignoringremoving-logother-files/#comment-262</guid>
		<description>Nice script!  There is a small bug in the handling of the &#039;tmp&#039; directory, which can be easily corrected:

Add the following line to the top of the file:
require &#039;find&#039;

Then, replace these lines...

system(&quot;svn commit -m \&quot;removing the temp directory from subversion \&quot; &quot;)
    puts  &quot;Ignoring tmp dir&quot;
    system(&quot;svn propset svn:ignore \&quot;*\&quot; tmp&quot;+s)
    puts  &quot;Updating and commiting again....&quot;
    system(&quot;svn update tmp&quot;+s)
    system(&quot;svn commit -m \&quot;Ignore the whole tmp&quot;+s+&quot; directory, might not work on subdirectories? \&quot; &quot;)
...with these lines:

    # Traverse the &quot;tmp&quot; subtree, ignoring directories which start with &quot;.&quot;,
    # marking any remaining directories with a property to ignore all files,
    # and removing any files therein from subversion.
    Find.find(&quot;tmp&quot;) do &#124;path&#124;
      if FileTest.directory?(path)
        if File.basename(path)[0] == ?.
          Find.prune       # Skip this directory (e.g. &quot;..&quot;, &quot;.svn&quot;)
        else
          # Tell subversion to ignore all files in this directory.
          system(&quot;svn propset svn:ignore \&quot;*\&quot; &quot;+path)
        end
     else
       # Remove any files from subversion.
       system(&quot;svn remove &quot;+path)
      end
    end
    system(&quot;svn commit -m \&quot;removing the tmp subtree from subversion \&quot; &quot;)

...and the tmp subtree will be properly excluded from subversion.

The problem was that the old code was not marking subdirectories of &#039;tmp&#039; with the svn:ignore property.  The new code removes any stray files under tmp, and marks the &#039;tmp&#039; directory and all subdirectories of &#039;tmp&#039; with the svn:ignore property.</description>
		<content:encoded><![CDATA[<p>Nice script!  There is a small bug in the handling of the &#8216;tmp&#8217; directory, which can be easily corrected:</p>
<p>Add the following line to the top of the file:<br />
require &#8216;find&#8217;</p>
<p>Then, replace these lines&#8230;</p>
<p>system(&#8220;svn commit -m \&#8221;removing the temp directory from subversion \&#8221; &#8220;)<br />
    puts  &#8220;Ignoring tmp dir&#8221;<br />
    system(&#8220;svn propset svn:ignore \&#8221;*\&#8221; tmp&#8221;+s)<br />
    puts  &#8220;Updating and commiting again&#8230;.&#8221;<br />
    system(&#8220;svn update tmp&#8221;+s)<br />
    system(&#8220;svn commit -m \&#8221;Ignore the whole tmp&#8221;+s+&#8221; directory, might not work on subdirectories? \&#8221; &#8220;)<br />
&#8230;with these lines:</p>
<p>    # Traverse the &#8220;tmp&#8221; subtree, ignoring directories which start with &#8220;.&#8221;,<br />
    # marking any remaining directories with a property to ignore all files,<br />
    # and removing any files therein from subversion.<br />
    Find.find(&#8220;tmp&#8221;) do |path|<br />
      if FileTest.directory?(path)<br />
        if File.basename(path)[0] == ?.<br />
          Find.prune       # Skip this directory (e.g. &#8220;..&#8221;, &#8220;.svn&#8221;)<br />
        else<br />
          # Tell subversion to ignore all files in this directory.<br />
          system(&#8220;svn propset svn:ignore \&#8221;*\&#8221; &#8220;+path)<br />
        end<br />
     else<br />
       # Remove any files from subversion.<br />
       system(&#8220;svn remove &#8220;+path)<br />
      end<br />
    end<br />
    system(&#8220;svn commit -m \&#8221;removing the tmp subtree from subversion \&#8221; &#8220;)</p>
<p>&#8230;and the tmp subtree will be properly excluded from subversion.</p>
<p>The problem was that the old code was not marking subdirectories of &#8216;tmp&#8217; with the svn:ignore property.  The new code removes any stray files under tmp, and marks the &#8216;tmp&#8217; directory and all subdirectories of &#8216;tmp&#8217; with the svn:ignore property.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Danger</title>
		<link>http://webonrails.com/2007/02/08/ruby-script-for-creating-new-rails-project-and-initial-svn-import-with-ignoringremoving-logother-files/comment-page-1/#comment-261</link>
		<dc:creator>Danger</dc:creator>
		<pubDate>Fri, 09 Feb 2007 17:45:12 +0000</pubDate>
		<guid isPermaLink="false">http://webonrails.com/2007/02/08/ruby-script-for-creating-new-rails-project-and-initial-svn-import-with-ignoringremoving-logother-files/#comment-261</guid>
		<description>If you put a shebang at the top of the file then it won&#039;t require the .rb extension or need to be run by Ruby when it&#039;s on a *nix system.
#!/usr/bin/env ruby

Thanks for this!</description>
		<content:encoded><![CDATA[<p>If you put a shebang at the top of the file then it won&#8217;t require the .rb extension or need to be run by Ruby when it&#8217;s on a *nix system.<br />
#!/usr/bin/env ruby</p>
<p>Thanks for this!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
