Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/distrib/sets Allow -u and -c to set diff style (from Todd Wh...



details:   https://anonhg.NetBSD.org/src/rev/11dd8473ddc2
branches:  trunk
changeset: 480207:11dd8473ddc2
user:      abs <abs%NetBSD.org@localhost>
date:      Thu Jan 06 21:03:34 2000 +0000

description:
Allow -u and -c to set diff style (from Todd Whitesel <toddpw%best.com@localhost>)

diffstat:

 distrib/sets/checkflist |  13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)

diffs (48 lines):

diff -r f868ffd09d01 -r 11dd8473ddc2 distrib/sets/checkflist
--- a/distrib/sets/checkflist   Thu Jan 06 19:20:35 2000 +0000
+++ b/distrib/sets/checkflist   Thu Jan 06 21:03:34 2000 +0000
@@ -1,6 +1,6 @@
 #! /bin/sh --
 #
-#      $NetBSD: checkflist,v 1.11 1999/11/27 13:10:45 mrg Exp $
+#      $NetBSD: checkflist,v 1.12 2000/01/06 21:03:34 abs Exp $
 #
 # Verify output of makeflist against contents of $DESTDIR.
 
@@ -14,6 +14,7 @@
 
 xargs=""
 dargs=""
+diffargs=""
 
 # handle args
 while : ; do
@@ -31,6 +32,12 @@
        -cryptint)
                dargs="-i"
                ;;
+       -u)
+               diffargs="-u"
+               ;;
+       -c)
+               diffargs="-c"
+               ;;
        -*)
                cat 1>&2 <<USAGE
 Usage: $0 [-x11|-both] [-secr]
@@ -38,6 +45,8 @@
        -both           check netbsd + x11 lists
        -secr           check domestic ("secr") lists
        -cryptint       check international crypto ("cryptint") lists
+       -u              output differences in "unified diff" style
+       -c              output differences in "context diff" style
 USAGE
                exit 1
                ;;
@@ -51,5 +60,5 @@
 sh makeflist $xargs $dargs > $tmpname
 
 ( cd $DESTDIR ; find $origin \( -type d -o -type f -o -type l \) ) | sort | \
-    diff $tmpname -
+    diff $diffargs $tmpname -
 /bin/rm -f $tmpname



Home | Main Index | Thread Index | Old Index