prog_dir="`dirname \"$0\"`" &&
cat "$prog_dir"/locate-all.list |
-while true; do
- read d || exit 0
- if ! test -d "$d"; then continue; fi
+while read d; do
+ if ! test -d "$d"; then echo "No such dir: $d" >&2; continue; fi
test -d "$d"/.git && g="$d"/.git || g="$d"
- b="`basename \"$d\" .git`"
+ b="`basename \"$d\"`"
eval "$@"
done