]> git.phdru.name Git - git-scripts.git/blob - do-all
Avoid bashisms
[git-scripts.git] / do-all
1 #! /bin/sh
2
3 prog_dir="`dirname \"$0\"`" &&
4
5 while true; do
6    read d || exit 0
7    if ! test -d "$d"; then continue; fi
8    test -d "$d"/.git && g="$d"/.git || g="$d"
9    b="`basename \"$d\" .git`"
10    eval "$@"
11 done < "$prog_dir"/locate-all.list