updated scheme for locating revision control assets; uses a list (in a
[feisty_meow.git] / scripts / rev_control / checkin.sh
index 4a747e76e399e4f2fb24ddd32d88f414038c1f12..a730031fc4df9e44a51174e1a30a7f418b59b5fc 100644 (file)
@@ -11,9 +11,10 @@ function do_checkin()
   local directory="$1"; shift
   if [ -d "CVS" ]; then
     # this appears to be cvs.
-    pushd "$directory/.." &>/dev/null
-    cvs ci "$directory"
-    popd &>/dev/null
+#    pushd "$directory/.." &>/dev/null
+    cvs ci .
+###"$directory"
+#    popd &>/dev/null
   elif [ -d ".svn" ]; then
     svn ci .
   elif [ -d ".git" ]; then
@@ -24,10 +25,17 @@ function do_checkin()
   fi
 }
 
+# checks in all the folders in a specified list.
 function checkin_list {
   local list=$*
   for i in $list; do
-    for j in $i/feisty_meow $i/hoople1 $i/hoople2 $i/quartz $i/web $i/yeti $i/xsede/xsede_tests $i/xsede/code/cak0l/trunk ; do
+echo whole list is ${REPOSITORY_LIST}
+    # turn repo list back into an array.
+    eval "repository_list=( ${REPOSITORY_LIST[*]} )"
+    for j in "${repository_list[@]}"; do
+      # add in the directory component.
+      j="$i/$j"
+echo here the dir thing is: $j
       if [ ! -d "$j" ]; then continue; fi
 
       pushd $j &>/dev/null