summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2004-10-05 22:34:07 +0000
committerjlam <jlam@pkgsrc.org>2004-10-05 22:34:07 +0000
commit1191106c78639b8fb02e8f5472197ee131c5ce37 (patch)
treebadf6c8d0e3d3880caf21b24f4507f06c4af6fb0 /mk
parent899d5d73d079059866f17f0fd0786fb82c0fe937 (diff)
downloadpkgsrc-1191106c78639b8fb02e8f5472197ee131c5ce37.tar.gz
Check for presence of the libname listed in the libtool archive before
outputting it to stdout.
Diffstat (limited to 'mk')
-rwxr-xr-xmk/scripts/print-la-libnames8
1 files changed, 6 insertions, 2 deletions
diff --git a/mk/scripts/print-la-libnames b/mk/scripts/print-la-libnames
index ad1ce951de8..2a2a71ada7e 100755
--- a/mk/scripts/print-la-libnames
+++ b/mk/scripts/print-la-libnames
@@ -1,6 +1,6 @@
# /bin/sh
#
-# $NetBSD: print-la-libnames,v 1.2 2004/09/21 17:54:38 jlam Exp $
+# $NetBSD: print-la-libnames,v 1.3 2004/10/05 22:34:07 jlam Exp $
#
# Copyright (c) 2004 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -64,7 +64,11 @@ do
exit 1
fi
for lib in $library_names $old_library; do
- ${ECHO} "$dir$lib"
+ libpath="$dir$lib"
+ if [ ! -f "$libpath" ]; then
+ ${ECHO} 1>&2 "$0: \`$libpath' was not found"
+ fi
+ ${ECHO} "$libpath"
done
fi
else