Replace find with ls when looking for installed libraries to prevent subdirectories from being searched. (suggested by Hubert Feyrer)

This commit is contained in:
erh 1999-01-27 05:50:29 +00:00
parent 51dc8fb666
commit 006c21d420
2 changed files with 8 additions and 3 deletions

View File

@ -1,5 +1,5 @@
#!/bin/ksh
# $NetBSD: checkver,v 1.3 1999/01/27 00:02:55 hubertf Exp $
# $NetBSD: checkver,v 1.4 1999/01/27 05:50:29 erh Exp $
#
# Copyright (c) 1998 The NetBSD Foundation, Inc.
# All rights reserved.
@ -136,7 +136,9 @@ if [ $usedir -eq 1 ] ; then
if [ "X$1" != "X" ] ; then
libdir="$1"
fi
find $libdir -name 'lib*.so.*.*' > $LIBLIST
for f in $libdir ; do
ls $f/lib*.so.*.*
done > $LIBLIST
fi
# Build list from set lists. Parameter may be either

View File

@ -1,4 +1,5 @@
#!/bin/ksh
# $NetBSD: checkvers,v 1.3 1999/01/27 05:50:29 erh Exp $
#
# Copyright (c) 1998 The NetBSD Foundation, Inc.
# All rights reserved.
@ -147,7 +148,9 @@ if [ $usedir -eq 1 ] ; then
if [ "X$1" != "X" ] ; then
libdir="$1"
fi
find $libdir -name 'lib*.so.*.*' > $LIBLIST
for f in $libdir ; do
ls $f/lib*.so.*.*
done > $LIBLIST
fi
# Build list from set lists. Parameter may be either