3 # checks in all the folders present in the REPOSITORY_LIST variable.
5 source "$FEISTY_MEOW_SCRIPTS/core/functions.sh"
6 source "$FEISTY_MEOW_SCRIPTS/rev_control/rev_control.sh"
8 # selects the method for check-in based on where we are.
11 local directory="$1"; shift
12 if [ -d "CVS" ]; then cvs ci . ;
13 elif [ -d ".svn" ]; then svn ci . ;
14 elif [ -d ".git" ]; then
15 git add . # snag all new files. not to everyone's liking.
16 git commit . # tell git about all the files and get a check-in comment.
17 git push # upload the files to the server so others can see them.
19 echo unknown repository for $directory...
23 # checks in all the folders in a specified list.
24 function checkin_list {
27 # turn repo list back into an array.
28 eval "repository_list=( ${REPOSITORY_LIST[*]} )"
29 for j in "${repository_list[@]}"; do
30 # add in the directory component.
32 if [ ! -d "$j" ]; then continue; fi
35 echo "checking in '$j'..."
42 echo "Committing repositories at: $(date)"
44 if [ "$OS" != "Windows_NT" ]; then
45 # first get individual folders.
48 checkin_list $HOME c:/ d:/ e:/