summaryrefslogtreecommitdiff
path: root/mk/subst.mk
diff options
context:
space:
mode:
authorrillig <rillig>2005-12-06 17:17:30 +0000
committerrillig <rillig>2005-12-06 17:17:30 +0000
commite67def26fb5ee72bcbc842c3d0d5482a2f436c34 (patch)
tree702b461a71da64a46fb407c4214554bb8cd03a81 /mk/subst.mk
parent09d40d2a6fa2cb5d97d4e94d518aafa226b61608 (diff)
downloadpkgsrc-e67def26fb5ee72bcbc842c3d0d5482a2f436c34.tar.gz
Allow absolute filenames for SUBST_FILES. Needed for converters/convmv and
maybe some others.
Diffstat (limited to 'mk/subst.mk')
-rw-r--r--mk/subst.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/mk/subst.mk b/mk/subst.mk
index 81ec7f1585d..2bfb24853b7 100644
--- a/mk/subst.mk
+++ b/mk/subst.mk
@@ -1,4 +1,4 @@
-# $NetBSD: subst.mk,v 1.25 2005/11/24 20:02:40 rillig Exp $
+# $NetBSD: subst.mk,v 1.26 2005/12/06 17:17:30 rillig Exp $
#
# This Makefile fragment implements a general text replacement facility.
# Package makefiles define a ``class'', for each of which a particular
@@ -80,7 +80,7 @@ ${_SUBST_COOKIE.${_class_}}:
cd ${WRKSRC:Q}; \
files=${SUBST_FILES.${_class_}:Q}; \
for file in $$files; do \
- file="./$$file"; \
+ case $$file in /*) ;; *) file="./$$file";; esac; \
tmpfile="$$file"${_SUBST_BACKUP_SUFFIX:Q}; \
if ${_SUBST_IS_TEXT_FILE}; then \
${MV} -f "$$file" "$$tmpfile" || exit 1; \