ref: 7f2e1ae8748df1fed378180929bdb203aae7f64c
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)