Source-Changes-HG archive

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

[src/trunk]: src/etc remove blank lines from the lists of files to backup_and...



details:   https://anonhg.NetBSD.org/src/rev/5ec1d6ec498a
branches:  trunk
changeset: 517248:5ec1d6ec498a
user:      lukem <lukem%NetBSD.org@localhost>
date:      Fri Nov 09 09:01:20 2001 +0000

description:
remove blank lines from the lists of files to backup_and_diff

diffstat:

 etc/security |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (29 lines):

diff -r 91b3ecc96bd2 -r 5ec1d6ec498a etc/security
--- a/etc/security      Fri Nov 09 07:50:19 2001 +0000
+++ b/etc/security      Fri Nov 09 09:01:20 2001 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh -
 #
-#      $NetBSD: security,v 1.72 2001/10/18 16:08:24 lukem Exp $
+#      $NetBSD: security,v 1.73 2001/11/09 09:01:20 lukem Exp $
 #      from: @(#)security      8.1 (Berkeley) 6/9/93
 #
 
@@ -843,7 +843,7 @@
        mtree -D -k type -f $file -I nodiff |
            sed '/^type=file/!d ; s/type=file \.//'
 done >> $TMP1
-sort -u $TMP1 > $TMP2
+grep -v '^$' $TMP1 | sort -u > $TMP2
 
 while read file; do
        backup_and_diff "$file" no
@@ -851,7 +851,7 @@
 
 
 if [ -n "$CHANGELIST" ]; then
-       cat $CHANGELIST | sort -u > $TMP1
+       grep -h -v '^$' $CHANGELIST | sort -u > $TMP1
        comm -23 $TMP1 $TMP2 | while read file; do
                backup_and_diff "$file" yes
        done



Home | Main Index | Thread Index | Old Index