example startup script, updated conf.
[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" &>/dev/null
13
14 for i in * ; do
15   if [ -d "$i" ]; then
16     echo "[$i]"
17     pushd $i &>/dev/null
18     # only update if we see a repository living there.
19     if [ -d ".svn" ]; then
20       bash $FEISTY_MEOW_SCRIPTS/rev_control/svnapply.sh \? echo
21     fi
22     popd &>/dev/null
23     echo "======="
24   fi
25 done
26
27 popd &>/dev/null