renaming frenzy to make the revision control tools useful. sneakily renamed the...
[feisty_meow.git] / scripts / rev_control / rev_report_new.sh
1 #!/bin/bash
2
3 # this script reports files that are not checked in yet in a set of folders.
4 # it works with subversion only, since git handles new files well whereas
5 # subversion ignores them until you tell it about them.  this script can take
6 # a directory as a parameter, but will default to the current directory.
7 # all the directories under the passed directory will be examined.
8
9 dir="$1"; shift
10 if [ -z "$dir" ]; then
11   dir=.
12 fi
13
14 pushd "$dir" &>/dev/null
15
16 for i in * ; do
17   if [ -d "$i" ]; then
18     echo "[$i]"
19     pushd $i &>/dev/null
20     # only update if we see a repository living there.
21     if [ -d ".svn" ]; then
22       bash $FEISTY_MEOW_SCRIPTS/rev_control/svnapply.sh \? echo
23     fi
24     popd &>/dev/null
25     echo "======="
26   fi
27 done
28
29 popd &>/dev/null