#!/bin/sh if [ $# -lt 2 ];then echo "Usage: `basename $0` " echo "for example: " echo " `basename $0` \"2006/11/07\" \"2006/11/18\" " exit 1 fi startdate=$1 enddate=$2 startlog=`echo $startdate | sed -e "s?/?_?g"` endlog=`echo $enddate | sed -e "s?/?_?g"` cvslog=cvslogsince${startlog}to${endlog}.txt cvs log -NS -d "$startdate<$enddate" > $cvslog if [ -f tmp.txt ];then rm tmp.txt fi less $cvslog | grep -v "RCS file" | grep -v "description:" | grep -v "access list:" | grep -v "head:" | grep -v "branch:" | grep -v "locks:" | grep -v "keyword substitution:" | grep -v "total revisions:" | grep -v "===============" | grep -v "\-\-\-\-\-\-\-\-\-\-\-\-\-" | grep -v "revision" > tmp.txt if [ -f tmp1.txt ];then rm tmp1.txt fi less tmp.txt | sed -e "s?Working file: ?o ?g" > tmp1.txt rm tmp.txt mv tmp1.txt $cvslog