scripts

misc scripts and tools
git clone git://git.2f30.org/scripts
Log | Files | Refs

2f30-clone-all (378B)


      1 #!/bin/sh
      2 
      3 command -v curl >/dev/null || {
      4         echo curl is not installed 1>&2
      5         exit 1
      6 }
      7 
      8 command -v git >/dev/null || {
      9         echo git is not installed 1>&2
     10         exit 1
     11 }
     12 
     13 curl -s https://git.2f30.org | grep -E 'href="[^/]+/log.html"' | sed -E 's,.*href="([^/]+)/log.html".*,\1,' | while read line; do
     14 	[ ! -d $line ] && git clone git://git.2f30.org/$line
     15 done