3 # Enhanced sccs diff utility for use with vc mode.
4 # This version is more compatible with rcsdiff(1).
6 # $Id: vcdiff,v 1.5 1995/07/07 22:47:57 eggert Exp $
10 usage
="$0: Usage: vcdiff [--brief] [-q] [-r<sid1>] [-r<sid2>] [diffopts] sccsfile..."
12 PATH
=$PATH:/usr
/ccs
/bin
:/usr
/sccs
:/usr
/xpg
4/bin
# common SCCS hangouts
33 ?
*) echo "$usage" >&2; exit 2 ;;
59 trap 'status=2; exit' 1 2 13 15
60 trap 'rm -f $rev1 $rev2 || status=2; exit $status' 0
70 get
-s -p -k $sid1 "$f" > $rev1 &&
73 workfile
=`expr " /$f" : '.*/s.\(.*\)'`
77 get
-s -p -k $sid2 "$f" > $rev2
81 $echo $DIFF $options $sid1 $sid2 $workfile >&2
82 $DIFF $options $rev1 $workfile
87 echo "$0: $f is not an SCCS file" >&2
90 if test $status -lt $s