#! /bin/sh
-cd "`dirname \"$0\"`" && PROG_DIR="`pwd`" &&
+cd "`dirname \"$0\"`" && prog_dir="`pwd`" &&
cd "$HOME"/tmp && rm -rf status-dirty-carefully.tmp &&
-LSTMP="$HOME"/tmp/status-dirty-carefully.tmp \
-"$PROG_DIR"/do-all \
- 'test "$g" = "$d/.git" || continue;' \
- 'rsync -aW --del --protocol=28 "$d" "$LSTMP" && cd "$LSTMP/$b" &&' \
- 'test -n "`git status -s`" && echo "----- $d -----" &&' \
- 'git status --branch' &&
+LSTMP="$HOME"/tmp/status-dirty-carefully.tmp &&
+for d in `"$prog_dir"/ls-dirty`
+do
+ rsync -aW --del --protocol=28 "$d" "$LSTMP" && cd "$LSTMP/`basename $d`" &&
+ echo "----- $d -----" && git status --branch
+done &&
cd "$HOME"/tmp && exec rm -rf status-dirty-carefully.tmp