changeset 3933:bfb5dd246441

Add -q option.
author Paul Eggert <eggert@twinsun.com>
date Wed, 30 Jun 1993 18:54:08 +0000
parents 9a411d86ca72
children 0bd0d7678a09
files lib-src/vcdiff
diffstat 1 files changed, 6 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/lib-src/vcdiff	Wed Jun 30 17:51:16 1993 +0000
+++ b/lib-src/vcdiff	Wed Jun 30 18:54:08 1993 +0000
@@ -3,12 +3,13 @@
 # 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.1 1992/08/04 16:08:22 eric Exp eggert $
 #
 
 DIFF="diff"
-usage="$0: Usage: vcdiff [-r<sid1>] [-r<sid2>] [diffopts] sccsfile..."
+usage="$0: Usage: vcdiff [-q] [-r<sid1>] [-r<sid2>] [diffopts] sccsfile..."
 
+echo=
 sid1=-r sid2=
 
 for f
@@ -16,6 +17,8 @@
 	case $f in
 	-*)
 		case $f in
+		-q)
+			echo=:;;
 		-r?*)
 			case $sid1 in
 			-r)
@@ -71,7 +74,7 @@
 				workfile=$rev2
 			esac
 		then
-			echo $DIFF $options $sid1 $sid2 $workfile >&2
+			$echo $DIFF $options $sid1 $sid2 $workfile >&2
 			$DIFF $options $rev1 $workfile
 			s=$?
 		fi