ref: 4ceae83df9e48cf3a950365aaf6e31a49cf62cfe
parent: 78c17415a54f4b8a269fde680dc0cd513ea07690
author: qwx <qwx@sciops.net>
date: Sun Mar 17 06:16:52 EDT 2024
add repoadd: complement to repou
--- /dev/null
+++ b/bin/repoadd
@@ -1,0 +1,9 @@
+#!/bin/rc -e
+rfork ne
+r=/sys/lib/extra
+d=usr
+
+repo=(`{echo $1 | sed 's,.*/([^/]+)/([^/]+)/?$,\1 \2,'})
+dir=$r/$d/$repo(1)
+git/clone $1 $dir/$repo(2)
+echo $1' '$repo(1)/$repo(2)' '$dir/$repo(2)' '$*(2-)