ref: 6213abf8bc893f3d18fa701c248c6316bd473cc6
dir: /bin/repou/
#!/bin/rc # giturl\tname\tdir\tdesc awk ' BEGIN{ FS="\t" }$1 !~ /^(#|$)/{ print $2 basedir = $3 sub("/[^/]+$", "", basedir) # yikes if(system("test -d " $3) != 0){ system("mkdir -p " basedir) system("git/clone " $1 " " $3) }else{ system("rc -c \''cd " $3 "; git/pull\''") } } ' $home/p/lib/^(plan9 unix)