diff options
author | jlam <jlam@pkgsrc.org> | 2004-09-21 17:54:38 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2004-09-21 17:54:38 +0000 |
commit | 79f68f7905cc722e6253f1b7697567ece65fa237 (patch) | |
tree | 7539af0ac8c7d3f8cf6b436a7202fdc258158ba7 /mk/scripts | |
parent | a80ec50c6c228b786c463b64ba7c67994dbfc510 (diff) | |
download | pkgsrc-79f68f7905cc722e6253f1b7697567ece65fa237.tar.gz |
Don't exit on error if the *.la file is not a libtool archive.
Diffstat (limited to 'mk/scripts')
-rwxr-xr-x | mk/scripts/print-la-libnames | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/mk/scripts/print-la-libnames b/mk/scripts/print-la-libnames index 647ea0d3c67..ad1ce951de8 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.1 2004/09/10 19:51:51 jlam Exp $ +# $NetBSD: print-la-libnames,v 1.2 2004/09/21 17:54:38 jlam Exp $ # # Copyright (c) 2004 The NetBSD Foundation, Inc. # All rights reserved. @@ -56,18 +56,18 @@ do *) lapath="./$la" ;; esac - if [ -r "$lapath" ] && \ - ${GREP} -q "libtool library file" "$lapath"; then - . "$lapath" - if [ "$installed" = "no" ]; then - ${ECHO} 1>&2 "$0: \`$lapath' was not properly installed" - exit 1 + if [ -r "$lapath" ]; then + if ${GREP} -q "libtool library file" "$lapath"; then + . "$lapath" + if [ "$installed" = "no" ]; then + ${ECHO} 1>&2 "$0: \`$lapath' was not properly installed" + exit 1 + fi + for lib in $library_names $old_library; do + ${ECHO} "$dir$lib" + done fi - for lib in $library_names $old_library; do - ${ECHO} "$dir$lib" - done else ${ECHO} 1>&2 "$0: cannot read libtool archive \`$lapath'" - exit 1 fi done | ${SORT} -u |