-#!/bin/sh
+#! /bin/sh
#
# Enhanced sccs diff utility for use with vc mode.
# This version is more compatible with rcsdiff(1).
#
-# $Id: vcdiff,v 1.2 1992/06/03 04:56:26 eric Exp $
+# $Id: vcdiff,v 1.4 1993/12/03 09:29:18 eggert Exp eggert $
#
DIFF="diff"
-usage="$0: Usage: vcdiff [-r<sid1>] [-r<sid2>] [diffopts] sccsfile..."
+usage="$0: Usage: vcdiff [--brief] [-q] [-r<sid1>] [-r<sid2>] [diffopts] sccsfile..."
+PATH=$PATH:/usr/ccs/bin:/usr/sccs # common SCCS hangouts
+
+echo=
sid1=-r sid2=
for f
case $f in
-*)
case $f in
+ --brief)
+ DIFF=cmp;;
+ -q)
+ echo=:;;
-r?*)
case $sid1 in
-r)
workfile=$rev2
esac
then
- echo $DIFF $options $sid1 $sid2 $workfile >&2
+ $echo $DIFF $options $sid1 $sid2 $workfile >&2
$DIFF $options $rev1 $workfile
s=$?
fi