#!/bin/bash # code here comes from getme; maybe needs abstracting. if [ "$OS" = "Windows_NT" ]; then ho=`hostname` elif [ ! -z "`echo $MACHTYPE | grep apple`" ]; then ho=`hostname` else ho=`hostname --long` fi echo "hostname is $ho" checkin_cmd="cvs ci " use_bare_name=1 if [[ $ho == *.gruntose.blurgh ]]; then echo setting svn for home network use_bare_name=0 checkin_cmd="svn ci " elif [[ $ho == v-samurai ]]; then echo setting svn for vsam use_bare_name=0 checkin_cmd="svn ci " elif [[ $ho == v-shaggy ]]; then echo setting svn for vshag use_bare_name=0 checkin_cmd="svn ci " fi function checkin_list { list=$* for i in $list; do for j in $i/yeti $i/hoople $i/web/hoople.org/hoople \ $i/web $i/code_inova $i/ontrack_project ; do #echo dir is now $j if [ ! -d "$j" ]; then #echo no directory called $j exists continue fi pushd $i >/dev/null if [ $use_bare_name -eq 1 ]; then folder=`basename $j` else folder=$j fi echo checking in: $folder $checkin_cmd $folder popd >/dev/null done done } if [ "$OS" != "Windows_NT" ]; then # first get individual folders. checkin_list ~ # now check in the user's directory, if that is an asset in revision control. pushd ~ >/dev/null cd .. $checkin_cmd $USER popd >/dev/null else checkin_list c: d: e: f: fi