shithub: shithub

ref: 205aef972b9461f33fd72b692c4d19e59ebc6868
dir: /list/

View raw version
#!/bin/rc -e

. /sys/lib/shithub/common.rc

cd $1
shift

rfork ne
nl='
'

prelude '' 'the fragrant git host'
echo '	<img src="/static/shithub.png" />
	<br/>

	<p>Shithub is a site for hosting git repositories. It is
	running on <a href="https://orib.dev/git9.html">git9</a>,
	hosted on <a href=http://9front.org>9front</a>.</p>

	<p>To get an account, or set up a group project email
	<a href="mailto:[email protected]">Ori Bernstein &lt;[email protected]&gt;</a>.
	</p>

	<p>To get started using shithub, read our <a href="/static/guide.html">
	user guide</a></p>
	
	<p>Shithub is a community service, written by people who
	avoid browsers. As a result, the web interface is a work
	in progress. Take a look at
	<a href="/static/plots.html">what we want</a>.
	</p>

'
echo '	<h2>Repositories</h2>
	A mirror is available at <a href="http://git.pmikkelsen.com">pmikkelsens</a>
	<br/>'

udir=()
for(repo in `$nl{ls */}){
	ndir=`{basename -d $repo}
	if(! ~ $udir $ndir)
		echo '</dl>'
	if(! ~ $udir $ndir){
		echo '<h3>'$ndir'</h3>'
		echo '<dl>'
		udir=$ndir
	}
	if(test -e $repo/.git/webpublish){
		echo '<dt><a href="/'$repo'/HEAD/info.html">'$repo'</a></dt>'
		echo '<dd>'
		if(test -f $repo/.git/desc)
			htcat $repo/.git/desc
		if not if(test -f $repo/.git/description)
			htcat $repo/.git/description
		if not
			echo 'probably some code'
		echo '</dd>'
	}
}