+#! /bin/sh
+
+cd "`dirname \"$0\"`" &&
+prog_dir="`pwd`" &&
+export prog_dir
+
+if [ "$1" = "-v" ]; then
+ verbose=1
+ shift
+fi
+
+cat "$prog_dir"/locate-all.list |
+while read d; do
+ if ! test -d "$d"; then echo "No such dir: $d" >&2; continue; fi
+ if [ "$verbose" = 1 ]; then echo "$d"; fi
+ cd "$d" && "$@" < /dev/tty || exit 1
+done