- directory="$1"; shift
-
- pushd "$directory/.." &>/dev/null
-
- # get the right modifier for the directory name.
- compute_modifier "$directory" "in"
-
- is_svn=1
- checkin_cmd="echo unknown repository for $directory..."
-
- if [ "$home_system" == "true" ]; then
- checkin_cmd="svn ci ."
-# use_bare_name=1
- fi
-
- # then we pretty much ignore what we guessed, and just use the
- # appropriate command for what we see inside the directory.
- if [ -d "$directory/CVS" ]; then
- checkin_cmd="cvs ci "
- is_svn=0
- modifier= # reset the modifier, since we know we have cvs.
-# use_bare_name=0
- elif [ -d "$directory/.svn" ]; then
- checkin_cmd="svn ci ."
-# use_bare_name=1
- fi
-
-# if [ "$use_bare_name" == "1" ]; then
-# directory=$(basename "$directory")
-# fi
-
- if [ $is_svn -eq 1 ]; then
- pushd "$directory" &>/dev/null
- $checkin_cmd
+ local directory="$1"; shift
+echo dir is $directory
+echo cur dir is $(pwd)
+ if [ -d "CVS" ]; then
+ # this appears to be cvs.
+ pushd "$directory/.." &>/dev/null
+ cvs ci "$directory"