diff options
author | rillig <rillig@pkgsrc.org> | 2005-12-06 17:17:30 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2005-12-06 17:17:30 +0000 |
commit | 5878c465cef3675880b68a46e73faa8b009dab27 (patch) | |
tree | 702b461a71da64a46fb407c4214554bb8cd03a81 /mk/subst.mk | |
parent | 830cb5ca4c7fe16f70e29ba1b2bf67f73a9e0c0b (diff) | |
download | pkgsrc-5878c465cef3675880b68a46e73faa8b009dab27.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.mk | 4 |
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; \ |