pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk/configure Handle case where {SH,}LIBTOOL_OVERRIDE i...
details: https://anonhg.NetBSD.org/pkgsrc/rev/1c426a8a7ef1
branches: trunk
changeset: 516347:1c426a8a7ef1
user: jlam <jlam%pkgsrc.org@localhost>
date: Wed Jul 19 22:07:13 2006 +0000
description:
Handle case where {SH,}LIBTOOL_OVERRIDE is empty for shells that don't
understand empty lists in for loops. Addresses PR pkg/34042.
diffstat:
mk/configure/libtool-override.mk | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diffs (31 lines):
diff -r f4a4669c775a -r 1c426a8a7ef1 mk/configure/libtool-override.mk
--- a/mk/configure/libtool-override.mk Wed Jul 19 19:48:21 2006 +0000
+++ b/mk/configure/libtool-override.mk Wed Jul 19 22:07:13 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: libtool-override.mk,v 1.5 2006/07/19 19:14:39 jlam Exp $
+# $NetBSD: libtool-override.mk,v 1.6 2006/07/19 22:07:13 jlam Exp $
######################################################################
### {libtool,shlibtool}-override (PRIVATE)
@@ -31,7 +31,9 @@
.if defined(LIBTOOL_OVERRIDE)
${_PKG_SILENT}${_PKG_DEBUG}set -e; \
cd ${WRKSRC}; \
- for file in ${LIBTOOL_OVERRIDE}; do \
+ set -- dummy ${LIBTOOL_OVERRIDE}; shift; \
+ while ${TEST} $$# -gt 0; do \
+ file="$$1"; shift; \
${TEST} -f "$$file" || continue; \
${_SCRIPT.${.TARGET}}; \
done
@@ -54,7 +56,9 @@
.if defined(SHLIBTOOL_OVERRIDE) && !empty(SHLIBTOOL_OVERRIDE)
${_PKG_SILENT}${_PKG_DEBUG}set -e; \
cd ${WRKSRC}; \
- for file in ${SHLIBTOOL_OVERRIDE}; do \
+ set -- dummy ${SHLIBTOOL_OVERRIDE}; shift; \
+ while ${TEST} $$# -gt 0; do \
+ file="$$1"; shift; \
${TEST} -f "$$file" || continue; \
${_SCRIPT.${.TARGET}}; \
done
Home |
Main Index |
Thread Index |
Old Index