Source-Changes-HG archive

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

[src/trunk]: src/dist/ipf Use find with -type f.



details:   https://anonhg.NetBSD.org/src/rev/1967293908d4
branches:  trunk
changeset: 485681:1967293908d4
user:      veego <veego%NetBSD.org@localhost>
date:      Wed May 03 10:50:03 2000 +0000

description:
Use find with -type f.

diffstat:

 dist/ipf/ipf2netbsd |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (38 lines):

diff -r c656548bae76 -r 1967293908d4 dist/ipf/ipf2netbsd
--- a/dist/ipf/ipf2netbsd       Wed May 03 10:49:07 2000 +0000
+++ b/dist/ipf/ipf2netbsd       Wed May 03 10:50:03 2000 +0000
@@ -1,6 +1,6 @@
 #! /bin/sh
 #
-#      $NetBSD: ipf2netbsd,v 1.2 2000/02/01 20:05:54 veego Exp $
+#      $NetBSD: ipf2netbsd,v 1.3 2000/05/03 10:50:04 veego Exp $
 #
 # Copyright (c) 1999 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -78,7 +78,7 @@
 done
 
 ### Add our NetBSD RCS Id
-find $dest -name '*.[chly]' -print | while read c; do
+find $dest -type f -name '*.[chly]' -print | while read c; do
        sed 1q < $c | grep -q '\$NetBSD' || (
 echo "/*       \$NetBSD\$      */" >/tmp/ipf2n$$
 echo "" >>/tmp/ipf2n$$
@@ -87,7 +87,7 @@
        )
 done
 
-find $dest -name '*.[0-9]' -a \! -name 'example.*' -print | while read m; do
+find $dest -type f -name '*.[0-9]' -a \! -name 'example.*' -print | while read m; do
        sed 1q < $m | grep -q '\$NetBSD' || (
 echo ".\\\"    \$NetBSD\$" >/tmp/ipf2m$$
 echo ".\\\"" >>/tmp/ipf2m$$
@@ -96,7 +96,7 @@
        )
 done
 
-find $dest -name 'example.*' -print | while read e; do
+find $dest -type f -name 'example.*' -print | while read e; do
        sed 1q < $e | grep -q '\$NetBSD' || (
 echo "#        \$NetBSD\$" >/tmp/ipf2e$$
        cat $e >> /tmp/ipf2e$$



Home | Main Index | Thread Index | Old Index