#!/bin/bash . $PERLLIB/mCM.lib evalCm if [ $evalCm_result == "cvs" ] then cvs -n up 1>$1 elif [ $evalCm_result == "svn" ] then svn status 1>$1 sed "s/^!/U/" $1 >$1.tmp mv $1.tmp $1 elif [ $evalCm_result == "git" ] then git status -s 1>$1 sed "s/^!/U/" $1 |sed "s/^ D/U/">$1.tmp mv $1.tmp $1 else echo $0: evalCm_result = $evalCm_result exit 1 fi