X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=locate-all;fp=locate-all;h=841721ea07bbffd902f1278e6c0ab16d372cd2dc;hb=0dee6251426c78542286fd9e93b21509c9e0e74a;hp=afaa3e757cfb9ce77517230c97faa4e67c157768;hpb=38b26e6bbb22cc7dd8fae8076279311596005bd5;p=git-scripts.git diff --git a/locate-all b/locate-all index afaa3e7..841721e 100755 --- a/locate-all +++ b/locate-all @@ -1,4 +1,13 @@ #! /bin/sh -locate -b \*.git | sed 's!/\.git$!!' | +locate -b \*.git | grep -v "/archive/SQLObject/\|/archive/cheetah3/\|/third-party/\|$HOME/tmp/" | + while read path; do + if [ -d "$path" ]; then # skip files `.git` - they're submodules + if [ "`basename \"$path\"`" = .git ]; then + dirname "$path" + else + echo "$path" + fi + fi + done | LC_ALL=C sort | uniq > locate-all.list