Replace find with ls when looking for installed libraries to prevent subdirectories from being searched. (suggested by Hubert Feyrer)
This commit is contained in:
parent
51dc8fb666
commit
006c21d420
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/ksh
|
#!/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.
|
# Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||||
# All rights reserved.
|
# All rights reserved.
|
||||||
|
@ -136,7 +136,9 @@ if [ $usedir -eq 1 ] ; then
|
||||||
if [ "X$1" != "X" ] ; then
|
if [ "X$1" != "X" ] ; then
|
||||||
libdir="$1"
|
libdir="$1"
|
||||||
fi
|
fi
|
||||||
find $libdir -name 'lib*.so.*.*' > $LIBLIST
|
for f in $libdir ; do
|
||||||
|
ls $f/lib*.so.*.*
|
||||||
|
done > $LIBLIST
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Build list from set lists. Parameter may be either
|
# Build list from set lists. Parameter may be either
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/bin/ksh
|
#!/bin/ksh
|
||||||
|
# $NetBSD: checkvers,v 1.3 1999/01/27 05:50:29 erh Exp $
|
||||||
#
|
#
|
||||||
# Copyright (c) 1998 The NetBSD Foundation, Inc.
|
# Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||||
# All rights reserved.
|
# All rights reserved.
|
||||||
|
@ -147,7 +148,9 @@ if [ $usedir -eq 1 ] ; then
|
||||||
if [ "X$1" != "X" ] ; then
|
if [ "X$1" != "X" ] ; then
|
||||||
libdir="$1"
|
libdir="$1"
|
||||||
fi
|
fi
|
||||||
find $libdir -name 'lib*.so.*.*' > $LIBLIST
|
for f in $libdir ; do
|
||||||
|
ls $f/lib*.so.*.*
|
||||||
|
done > $LIBLIST
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Build list from set lists. Parameter may be either
|
# Build list from set lists. Parameter may be either
|
||||||
|
|
Loading…
Reference in New Issue