renaming frenzy to make the revision control tools useful. sneakily renamed the...
[feisty_meow.git] / scripts / rev_control / rev_checkin.sh
1 #!/bin/bash
2 # checks in the updated files in a set of folders checked out from subversion
3 # or git.  this can take a directory as parameter, but will default to the
4 # current working directory.  all the directories under the passed directory
5 # will be examined.
6
7 dir="$1"; shift
8 if [ -z "$dir" ]; then
9   dir=.
10 fi
11
12 source "$FEISTY_MEOW_SCRIPTS/rev_control/version_control.sh"
13
14 pushd "$dir" &>/dev/null
15
16 for i in * ; do
17   if [ -d "$i" ]; then
18     echo "[$i]"
19     do_checkin $i
20 #    pushd $i &>/dev/null
21 #    # only update if we see a repository living there.
22 #    if [ -d ".svn" ]; then
23 #      svn ci .
24 #    elif [ -d ".git" ]; then
25 #      git commit .
26 #      git push
27 #    elif [ -d "CVS" ]; then
28 #      cvs diff .
29 #    fi
30 #    popd &>/dev/null
31     echo "======="
32   fi
33 done
34
35 popd &>/dev/null
36
37