shithub: rc

Download patch

ref: fae7328e50531d7d42c81167ad152da0d91e569d
parent: 6f3e1efdfb7b28683916a3ce4b97e54b1895a10b
author: qwx <[email protected]>
date: Sun May 23 13:31:19 EDT 2021

add mlu: upgrade from rc function

--- a/fn
+++ b/fn
@@ -103,8 +103,6 @@
 # mail
 # manual mail archive
 fn arc{ cat >/mail/box/qwx/arc/`{date -n} }
-# update dir with new messages from archived mailing list
-fn mlu{ cd /n/lists.9front.org/lists/$1; tar c `{diff <{lr} <{cd $2; lr} | sed '/^[^<]/d;s/< //'} | @{cd $2; tar xT} }
 # attempt at quoting
 fn qt{ cat | sed 's/^/> /' }
 
--- /dev/null
+++ b/mlu
@@ -1,0 +1,8 @@
+#!/bin/rc
+if(! ~ $#* 2){
+	echo usage: $0 listname destdir
+	exit usage
+}
+9fs lists.9front.org
+cd /n/lists.9front.org/lists/$1
+syncab /n/lists.9front.org/lists/$1 $2 | tee | rc