mybin

my ~/bin
git clone https://a3nm.net/git/mybin/
Log | Files | Refs | README

find_extra_repos (293B)


      1 #!/bin/bash
      2 
      3 # find repositories in ~/git and ~/svn that are not managed by myrepos
      4 
      5 for a in svn git
      6 do
      7   comm -2 -3 <(ls "$HOME/$a/" | sort) \
      8     <(cat "$HOME/config/private/mrconfig" | grep "^\[$a" |
      9       cut -d '[' -f2 | cut -d']' -f1 | cut -d'/' -f2- | sort) |
     10     sed "s/^/$a\//"
     11 done