comparison lib-src/vcdiff @ 5211:7124a811b67b

Add --brief option.
author Paul Eggert <eggert@twinsun.com>
date Fri, 03 Dec 1993 09:29:18 +0000
parents 8e72792f2d18
children da322c027bf0
comparison
equal deleted inserted replaced
5210:4db0922992a3 5211:7124a811b67b
1 #!/bin/sh 1 #!/bin/sh
2 # 2 #
3 # Enhanced sccs diff utility for use with vc mode. 3 # Enhanced sccs diff utility for use with vc mode.
4 # This version is more compatible with rcsdiff(1). 4 # This version is more compatible with rcsdiff(1).
5 # 5 #
6 # $Id: vcdiff,v 1.2 1993/06/30 18:54:08 eggert Exp eggert $ 6 # $Id: vcdiff,v 1.3 1993/08/25 08:18:56 eggert Exp eggert $
7 # 7 #
8 8
9 DIFF="diff" 9 DIFF="diff"
10 usage="$0: Usage: vcdiff [-q] [-r<sid1>] [-r<sid2>] [diffopts] sccsfile..." 10 usage="$0: Usage: vcdiff [--brief] [-q] [-r<sid1>] [-r<sid2>] [diffopts] sccsfile..."
11 11
12 PATH=$PATH:/usr/ccs/bin:/usr/sccs # common SCCS hangouts 12 PATH=$PATH:/usr/ccs/bin:/usr/sccs # common SCCS hangouts
13 13
14 echo= 14 echo=
15 sid1=-r sid2= 15 sid1=-r sid2=
17 for f 17 for f
18 do 18 do
19 case $f in 19 case $f in
20 -*) 20 -*)
21 case $f in 21 case $f in
22 --brief)
23 DIFF=cmp;;
22 -q) 24 -q)
23 echo=:;; 25 echo=:;;
24 -r?*) 26 -r?*)
25 case $sid1 in 27 case $sid1 in
26 -r) 28 -r)