pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk/buildlink3 add some quoting to deal with the case w...
details: https://anonhg.NetBSD.org/pkgsrc/rev/15f1ea047723
branches: trunk
changeset: 479345:15f1ea047723
user: dmcmahill <dmcmahill%pkgsrc.org@localhost>
date: Fri Aug 13 00:48:05 2004 +0000
description:
add some quoting to deal with the case where a file in a package
has a space in the filename. Without the quoting the buildlink
stage fails completely with errors. ok'ed by Johnny Lam.
diffstat:
mk/buildlink3/bsd.buildlink3.mk | 20 ++++++++++----------
1 files changed, 10 insertions(+), 10 deletions(-)
diffs (47 lines):
diff -r aa9128c467ce -r 15f1ea047723 mk/buildlink3/bsd.buildlink3.mk
--- a/mk/buildlink3/bsd.buildlink3.mk Fri Aug 13 00:42:31 2004 +0000
+++ b/mk/buildlink3/bsd.buildlink3.mk Fri Aug 13 00:48:05 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.buildlink3.mk,v 1.147 2004/08/10 15:16:29 jlam Exp $
+# $NetBSD: bsd.buildlink3.mk,v 1.148 2004/08/13 00:48:05 dmcmahill Exp $
#
# An example package buildlink3.mk file:
#
@@ -614,7 +614,7 @@
${_BLNK_FILES_CMD.${_pkg_}} | \
while read file; do \
src="${BUILDLINK_PREFIX.${_pkg_}}/$$file"; \
- if [ ! -f $$src ]; then \
+ if [ ! -f "$$src" ]; then \
msg="$$src: not found"; \
else \
if [ -z "${BUILDLINK_TRANSFORM.${_pkg_}:Q}" ]; then \
@@ -625,20 +625,20 @@
dest=`${ECHO} $$dest | ${SED} ${BUILDLINK_TRANSFORM.${_pkg_}}`; \
msg="$$src -> $$dest"; \
fi; \
- dir=`${DIRNAME} $$dest`; \
- if [ ! -d $$dir ]; then \
- ${MKDIR} $$dir; \
+ dir=`${DIRNAME} "$$dest"`; \
+ if [ ! -d "$$dir" ]; then \
+ ${MKDIR} "$$dir"; \
fi; \
- ${RM} -f $$dest; \
- case $$src in \
+ ${RM} -f "$$dest"; \
+ case "$$src" in \
*.la) \
- ${CAT} $$src | \
+ ${CAT} "$$src" | \
${_BLNK_LT_ARCHIVE_FILTER.${_pkg_}} \
- > $$dest; \
+ > "$$dest"; \
msg="$$msg (created)"; \
;; \
*) \
- ${LN} -sf $$src $$dest; \
+ ${LN} -sf "$$src" "$$dest"; \
;; \
esac; \
fi; \
Home |
Main Index |
Thread Index |
Old Index