wm: infra

Download patch

ref: 15ae03ea862fbd3bef2fcde9c34285f8b8e8311a
parent: de92748c1a939d295c7675b92a0174351cf87784
author: mkf <mkf>
date: Fri Sep 6 00:01:44 EDT 2024

doctxt, docweb: remove

--- a/doctxt
+++ /dev/null
@@ -1,30 +1,0 @@
-#!/bin/rc -e
-
-. /sys/lib/shithub/common.rc
-
-cd $1
-shift
-
-rfork ne
-nl='
-'
-
-gituser=$1
-repo=$2
-refname=$3
-file=$4
-
-repons $gituser $repo
-if(! ref=`{resolveref $refname}){
-	echo 'Invalid ref '$refname''
-	exit
-}
-
-if(! test -d $gitfs/$ref/tree){
-	echo 'No such document'
-	exit
-}
-
-cd $gitfs/$ref/tree
-nroff -ms $gitfs/$ref/tree/$file.ms | col -bf
-
--- a/docweb
+++ /dev/null
@@ -1,42 +1,0 @@
-#!/bin/rc -e
-
-. /sys/lib/shithub/common.rc
-
-cd $1
-shift
-
-rfork ne
-nl='
-'
-
-gituser=$1
-repo=$2
-refname=$3
-file=$4
-
-repons $gituser $repo
-if(! ref=`{resolveref $refname}){
-	echo '<b>invalid ref '$refname'</b>'
-	exit
-}
-
-if(! test -d $gitfs/$ref/tree){
-	echo '	<p>No code pushed</p>
-		</body>
-		</html>
-	'
-	exit
-}
-
-cd $gitfs/$ref/tree
-
-echo '	<p>'
-
-echo '<p><div id="content">'
-
-ms2html < $gitfs/$ref/tree/$file.ms
-	
-echo '	</div>
-	</p>
-	</body>
-	</html>'