shithub: barf

Download patch

ref: 255eea6b9e7a886ccfcea5e19bbc95a773367085
parent: f08e22fecfebbe79c07d45e28e98a8c442d66e79
author: sl <sl@x60t>
date: Fri Aug 30 23:31:14 EDT 2024

mkfile: generate index.md from README.

--- a/mkfile
+++ b/mkfile
@@ -1,11 +1,9 @@
-WERC=/usr/sl/www/werc
-PLAN9=$WERC/sites/plan9.stanleylieber.com
-
 web:V:
 	cp README index.md
-	src=`{basename `{pwd}}
-	rm -rf $PLAN9/werc/apps/$src
-	cd $WERC/apps
-	tar zcvf $PLAN9/werc/apps/$src.tgz $src
-	cd $PLAN9/werc/apps
-	tar zxvf $src.tgz
+	if(test -f barf.tgz)
+		rm barf.tgz
+	cd ..
+	tar zcvf /tmp/barf.tgz barf
+	cd barf
+	cp /tmp/barf.tgz ../../../src/
+	rm /tmp/barf.tgz