<?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>Shawn Wilsher &#187; error</title>
	<atom:link href="http://shawnwilsher.com/archives/tag/error/feed" rel="self" type="application/rss+xml" />
	<link>http://shawnwilsher.com</link>
	<description></description>
	<lastBuildDate>Sun, 04 Dec 2011 10:37:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Highlight Warnings in Make</title>
		<link>http://shawnwilsher.com/archives/184</link>
		<comments>http://shawnwilsher.com/archives/184#comments</comments>
		<pubDate>Wed, 03 Dec 2008 19:19:05 +0000</pubDate>
		<dc:creator>Shawn Wilsher</dc:creator>
				<category><![CDATA[Mozilla]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[make]]></category>
		<category><![CDATA[warning]]></category>

		<guid isPermaLink="false">http://shawnwilsher.com/?p=184</guid>
		<description><![CDATA[Curtis just gave me this incredibly handy piece of code that higlights errors and warnings in make output. Now, when I&#8217;m building, all the warnings are highlighted in yellow, and the errors in red. Just put the following in your bash profile script: make() { pathpat="(/[^/]*)+:[0-9]+" ccred=$(echo -e "\033[0;31m") ccyellow=$(echo -e "\033[0;33m") ccend=$(echo -e "\033[0m") [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://curtisb.posterous.com/">Curtis</a> just gave me this incredibly handy piece of code that higlights errors and warnings in make output.  Now, when I&#8217;m building, all the warnings are highlighted in yellow, and the errors in red.  Just put the following in your bash profile script:</p>
<pre>
make()
{
  pathpat="(/[^/]*)+:[0-9]+"
  ccred=$(echo -e "\033[0;31m")
  ccyellow=$(echo -e "\033[0;33m")
  ccend=$(echo -e "\033[0m")
  /usr/bin/make "$@" 2>&#038;1 | sed -E -e "/[Ee]rror[: ]/ s%$pathpat%$ccred&#038;$ccend%g" -e "/[Ww]arning[: ]/ s%$pathpat%$ccyellow&#038;$ccend%g"
  return ${PIPESTATUS[0]}
}
</pre>
<p>Of course, improvements and more ideas welcome!  Thanks goes to Curtis for this!</p>
]]></content:encoded>
			<wfw:commentRss>http://shawnwilsher.com/archives/184/feed</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
	</channel>
</rss>

