<?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>Bluehorn's Blog &#187; debian quilt</title>
	<atom:link href="http://www.landschoff.net/blog/tag/debian-quilt/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.landschoff.net/blog</link>
	<description>Ramblings of Torsten Landschoff</description>
	<lastBuildDate>Sun, 07 Nov 2010 18:24:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>quiltrc for Debian packaging</title>
		<link>http://www.landschoff.net/blog/2010/01/quiltrc-for-debian-packaging/</link>
		<comments>http://www.landschoff.net/blog/2010/01/quiltrc-for-debian-packaging/#comments</comments>
		<pubDate>Tue, 19 Jan 2010 14:50:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[debian quilt]]></category>

		<guid isPermaLink="false">http://www.landschoff.net/blog/?p=149</guid>
		<description><![CDATA[Working on another laptop, I was missing my quiltrc settings. I think, I got them from a this email by Marco d&#8217;Itri. Perhaps it is of help to somebody (for example, when I go searching for it again). BTW, I changed it locally to check only for debian folder in parent directories and create debian/patches [...]]]></description>
			<content:encoded><![CDATA[<p>Working on another laptop, I was missing my quiltrc settings. I think, I got them from a <a href="http://lists.debian.org/debian-devel/2008/05/msg00065.html">this email by Marco d&#8217;Itri</a>. Perhaps it is of help to somebody (for example, when I go searching for it again).</p>
<p>BTW, I changed it locally to check only for <tt>debian</tt> folder in parent directories and create <tt>debian/patches</tt> automatically if needed:</p>
<pre lang="bash">
for d in . .. ../.. ../../.. ../../../.. ../../../../..; do
    if [ -d $d/debian ]; then
        if ! [ -d $d/debian/patches ]; then
            mkdir $d/debian/patches
        fi
        export QUILT_PATCHES=debian/patches
    fi
done
</pre>
<p>I&#8217;d rather end up with a <tt>patches</tt> dir inside the <tt>debian</tt> folder instead of having it at a random place in the package sources when adding the first quilt patch.</p>
<p>I wonder if we should ship this with the quilt package!?</p>
<p><b>Update:</b> After discussion with James Vega on IRC, the quiltrc evolved into this version:</p>
<pre lang="bash">
d=.
while [ ! -d "$d/debian" -a `readlink -e $d` != / ]; do
    d="$d/.."
done

if [ -d "$d/debian" ]; then
    export QUILT_PATCHES=debian/patches
    if ! [ -d $d/debian/patches ]; then
        mkdir $d/debian/patches
    fi
fi
</pre>
<p>This works with any directory depth while the original would only support 5 levels from the package base directory.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.landschoff.net/blog/2010/01/quiltrc-for-debian-packaging/feed/</wfw:commentRss>
		<slash:comments>105</slash:comments>
		</item>
	</channel>
</rss>

