diff options
author | jlam <jlam@pkgsrc.org> | 2008-03-17 20:57:04 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2008-03-17 20:57:04 +0000 |
commit | 729f7bf2dac91cbe5b3df1f31b7ec4d7d2f9c611 (patch) | |
tree | 6e8cd8c6f345177089681d740415efaf13727f0a /lang/ruby | |
parent | cc71b06e1276b1799b0f6c5b030e7bac8bfcdcee (diff) | |
download | pkgsrc-729f7bf2dac91cbe5b3df1f31b7ec4d7d2f9c611.tar.gz |
Allow REPLACE_RUBY_DIRS to be relative to ${WRKSRC}.
Diffstat (limited to 'lang/ruby')
-rw-r--r-- | lang/ruby/replace.mk | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lang/ruby/replace.mk b/lang/ruby/replace.mk index 5a09b1e4219..2211fece1d6 100644 --- a/lang/ruby/replace.mk +++ b/lang/ruby/replace.mk @@ -1,4 +1,4 @@ -# $NetBSD: replace.mk,v 1.8 2007/12/13 14:46:58 taca Exp $ +# $NetBSD: replace.mk,v 1.9 2008/03/17 20:57:04 jlam Exp $ # .if !defined(_RUBY_REPLACE_MK) @@ -20,7 +20,8 @@ REPLACE_FILES.${RUBY_NAME}= ${REPLACE_RUBY} .endif # defined(REPLACE_RUBY) # REPLACE_RUBY_DIRS replace shebang line of files under specified -# directories. +# directories; relative paths are assumed to be +# under ${WRKSRC}. # REPLACE_RUBY_PAT specify pattern to match target files under # REPLACE_RUBY_DIRS directories. # @@ -35,7 +36,7 @@ _REPLACE_RUBY_PAT+= -o -name "${f}" _REPLACE_RUBY_FIND_ARGS=\( ${_REPLACE_RUBY_PAT:S/-o//1} \) replace-ruby-dirs: - ${_PKG_SILENT}${_PKG_DEBUG}${FIND} ${REPLACE_RUBY_DIRS} \ + ${RUN} cd ${WRKSRC} && ${FIND} ${REPLACE_RUBY_DIRS} \ -type f ${_REPLACE_RUBY_FIND_ARGS} -print | \ while read f; do \ ${SED} -e '1s| *[a-z0-9_/\.-][a-z0-9_/\.-]*/env *||g' \ |