shithub: shithub

ref: 2444dbcbf8bf4d90f883b0fa13a783b8e7ef289e
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:ori@eigenstate.org">Ori Bernstein &lt;ori@eigenstate.org&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>'
	}
}