3 # Enhanced sccs diff utility for use with vc mode.
4 # This version is more compatible with rcsdiff(1).
6 # $Id: vcdiff,v 1.1 1992/08/04 16:08:22 eric Exp eggert $
10 usage
="$0: Usage: vcdiff [-q] [-r<sid1>] [-r<sid2>] [diffopts] sccsfile..."
29 ?
*) echo "$usage" >&2; exit 2 ;;
55 trap 'status=2; exit' 1 2 13 15
56 trap 'rm -f $rev1 $rev2 || status=2; exit $status' 0
66 get
-s -p -k $sid1 "$f" > $rev1 &&
69 workfile
=`expr " /$f" : '.*/s.\(.*\)'`
73 get
-s -p -k $sid2 "$f" > $rev2
77 $echo $DIFF $options $sid1 $sid2 $workfile >&2
78 $DIFF $options $rev1 $workfile
83 echo "$0: $f is not an SCCS file" >&2
86 if test $status -lt $s