<?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>Joe Maller &#187; gitweb</title>
	<atom:link href="http://joemaller.com/tag/gitweb/feed/" rel="self" type="application/rss+xml" />
	<link>http://joemaller.com</link>
	<description>.com</description>
	<lastBuildDate>Fri, 27 Jan 2012 06:04:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Faster and easier Gitweb installation</title>
		<link>http://joemaller.com/1596/faster-easier-gitweb-installation/</link>
		<comments>http://joemaller.com/1596/faster-easier-gitweb-installation/#comments</comments>
		<pubDate>Sun, 03 Jan 2010 22:47:20 +0000</pubDate>
		<dc:creator>Joe</dc:creator>
				<category><![CDATA[misc.]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[gitweb]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://joemaller.com/?p=1596</guid>
		<description><![CDATA[The idea of using make to build Gitweb isn&#8217;t just excessively complex, it&#8217;s also mostly unnecessary. Building gitweb.cgi from gitweb.perl only changes 19 of the source file&#8217;s 6734 lines (0.2%). Fact is, to get Gitweb working only one line needs changing. After the following edit, all local configuration values can be loaded from a simple [...]]]></description>
			<content:encoded><![CDATA[<p>The idea of using make to build <a href="http://git.or.cz/gitwiki/Gitweb">Gitweb</a> isn&#8217;t just excessively complex, it&#8217;s also mostly unnecessary. Building <strong>gitweb.cgi</strong> from <strong>gitweb.perl</strong> only changes 19 of the source file&#8217;s 6734 lines (0.2%).</p>
<p>Fact is, to get Gitweb working only <em>one</em> line needs changing. After the following edit, all local configuration values can be loaded from a simple config file.</p>
<p>On line 546, insert the name of your config file:</p>
<pre><code><span style="color: red">-our $GITWEB_CONFIG = $ENV{'GITWEB_CONFIG'} || "++GITWEB_CONFIG++";</span>
+our $GITWEB_CONFIG = $ENV{'GITWEB_CONFIG'} || "<strong>gitweb_config.perl</strong>";</code></pre>
<p>A set of fully-documented configuration files is available in the <a href="http://github.com/joemaller/Simple-Gitweb-Config">Simple Gitweb Config</a> project on Github, to help get things up and running quickly.</p>
<p><span id="more-1596"></span></p>
<h3>Full instructions</h3>
<p>Here are all the steps necessary to get Gitweb running on a webserver. In most cases, the configuration will work without modification, installation shouldn&#8217;t take more than five minutes start to finish.</p>
<ol>
<li>Create temporary source directory:</li>
<pre><code>mkdir ~/src &amp;&amp; cd ~/src</code></pre>
<li>Download and extract Git source and Simple Gitweb Config tarballs:</li>
<pre><code>curl -LO http://kernel.org/pub/software/scm/git/git-1.6.6.tar.gz
curl -LO http://github.com/joemaller/Simple-Gitweb-Config/tarball/master
tar -xvzf git-1.6.6.tar.gz
tar -xzvf master</code></pre>
<li>Copy Git&#8217;s gitweb subdirectory to a web accessible location, then copy the gitweb config files into the live gitweb directory:</li>
<pre><code>cp -r git-1.6.6/gitweb ~/www/
cp joemaller-Simple-Gitweb-Config*/* ~/www/gitweb/</code></pre>
<li>Replace <code>++GITWEB_CONFIG++</code> with <code>gitweb_config.perl</code> and make the resulting CGI executable:</li>
<pre><code>sed -re's/\++GITWEB_CONFIG\++/gitweb_config.perl/g' gitweb.perl  &gt; gitweb.cgi
chmod a+x gitweb.cgi</code></pre>
<li>Gitweb should be working now, but if necessary, edit <strong>projects_list.txt</strong>, <strong>gitweb_config.perl</strong> and customize the three html files for your environment. </li>
</ol>
<p>One last note, since it wasn&#8217;t immediately obvious to me. To change the default repository description, <em>&#8220;Unnamed repository; edit this file to name it for gitweb.&#8221;</em> edit the configuration file inside the .git folder. Descriptions are per-repository and do not update or transfer with pushes, pulls or clones.</p>
]]></content:encoded>
			<wfw:commentRss>http://joemaller.com/1596/faster-easier-gitweb-installation/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Database Caching 1/10 queries in 0.009 seconds using disk: basic
Object Caching 212/222 objects using disk: basic

Served from: joemaller.com @ 2012-02-08 12:31:52 -->

<!-- W3 Total Cache: Page cache debug info:
Engine:             disk: enhanced
Cache key:          tag/gitweb/feed/_index.xml_gzip
Caching:            enabled
Status:             not cached
Creation Time:      0.428s
Header info:
Set-Cookie:         bb2_screener_=1328722312+38.107.179.220+38.107.179.220; path=/
X-Pingback:         http://joemaller.com/wordpress/xmlrpc.php
Content-Type:       text/xml; charset=UTF-8
Last-Modified:      Wed, 08 Feb 2012 17:31:52 GMT
Vary:               Accept-Encoding, Cookie
Expires:            Wed, 08 Feb 2012 18:31:52 GMT
Pragma:             public
Cache-Control:      public, must-revalidate, proxy-revalidate
Etag:               08a675cc4cf7a4fa6f5101b08559b5a5
X-Powered-By:       W3 Total Cache/0.9.2.4
Content-Encoding:   gzip
-->
