[ -f .mergeinfo ] && . ./.mergeinfo
-FILES=`cvs-modified-files.pl $1`
+CVS_MODIFIED_FILES_PL=$(which cvs-modified-files.pl 2>/dev/null)
+if [ -z "$CVS_MODIFIED_FILES_PL" ]; then
+ CVS_MODIFIED_FILES_PL=$(dirname $0)/cvs-modified-files.pl
+fi
+FILES=$($CVS_MODIFIED_FILES_PL $1)
TMP=`mktemp /tmp/cvslog-XXXXXXXX`
if [ -f $TMP ]; then
[ -f .mergeinfo ] && . .mergeinfo
[ "$TAG" ] && BRANCH="`sed 's/^T//' $TAG`" || BRANCH="HEAD"
echo "CVS: Branch $BRANCH" >> $TMP
fi
- echo "CVS: did you update the ChangeLog for a bug fix?" >> $TMP
- echo "CVS: did you update the hours spent in Bugzilla?" >> $TMP
- echo "CVS: b=<bug>" >> $TMP
- echo "CVS: r=<reviewed_by>" >> $TMP
+cat - >> $TMP <<- EOF
+ CVS: Remove "CVS:" from start of lines that should be in commit message
+ CVS: did you update the ChangeLog for a bug fix?
+ CVS: did you update the hours spent in Bugzilla?
+ CVS: did you verify/update the HLD/DLD in CVS?
+ CVS: b=<bug>
+ CVS: r=<reviewed_by>
+EOF
cat $1 >> $TMP
cp $TMP $1