added directory parameter.
[feisty_meow.git] / scripts / rev_control / report_new_files.sh
1 #!/bin/bash
2
3 # a simple script for updating a set of folders on a usb stick from subversion or git.  currently
4 # just runs with no parameters and expects to get all archives from wherever the files originally
5 # came from.
6
7 dir="$1"; shift
8 if [ -z "$dir" ]; then
9   dir=.
10 fi
11
12 pushd "$dir"
13
14 for i in * ; do
15   if [ -d "$i" ]; then
16     pushd $i
17     # only update if we see a repository living there.
18     if [ -d ".svn" ]; then
19       bash $FEISTY_MEOW_SCRIPTS/rev_control/svnapply.sh \? echo
20     fi
21     popd
22   fi
23 done
24
25 popd