summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authortaca <taca>2007-12-13 14:46:58 +0000
committertaca <taca>2007-12-13 14:46:58 +0000
commit498f21510d128ee044151291807f68628f24601d (patch)
tree23f263ec7eb1987c53d53c6a1625a5cd91f090ba /lang
parent83319471abba4786bb1d5c005717370600ee9a4a (diff)
downloadpkgsrc-498f21510d128ee044151291807f68628f24601d.tar.gz
Use more Ruby specific name: s/REPLACE_FILE_PAT/REPLACE_RUBY_PAT/.
Diffstat (limited to 'lang')
-rw-r--r--lang/ruby/replace.mk16
1 files changed, 8 insertions, 8 deletions
diff --git a/lang/ruby/replace.mk b/lang/ruby/replace.mk
index 118aeefea33..5a09b1e4219 100644
--- a/lang/ruby/replace.mk
+++ b/lang/ruby/replace.mk
@@ -1,4 +1,4 @@
-# $NetBSD: replace.mk,v 1.7 2007/05/01 23:03:29 minskim Exp $
+# $NetBSD: replace.mk,v 1.8 2007/12/13 14:46:58 taca Exp $
#
.if !defined(_RUBY_REPLACE_MK)
@@ -10,8 +10,6 @@ _RUBY_REPLACE_MK= # defined
#
# REPLACE_RUBY replace shebang line of specified files.
#
-REPLACE_FILE_PAT?= *.rb
-
.if defined(REPLACE_RUBY)
REPLACE_INTERPRETER+= ${RUBY_NAME}
@@ -23,20 +21,22 @@ REPLACE_FILES.${RUBY_NAME}= ${REPLACE_RUBY}
# REPLACE_RUBY_DIRS replace shebang line of files under specified
# directories.
-# REPLACE_FILE_PAT specify pattern to match target files under
+# REPLACE_RUBY_PAT specify pattern to match target files under
# REPLACE_RUBY_DIRS directories.
#
+REPLACE_RUBY_PAT?= *.rb
+
.if defined(REPLACE_RUBY_DIRS) && !empty(REPLACE_RUBY_DIRS)
pre-configure: replace-ruby-dirs
-.for f in ${REPLACE_FILE_PAT}
-_REPLACE_FILE_PAT+= -o -name "${f}"
+.for f in ${REPLACE_RUBY_PAT}
+_REPLACE_RUBY_PAT+= -o -name "${f}"
.endfor
-_REPLACE_FILE_FIND_ARGS=\( ${_REPLACE_FILE_PAT:S/-o//1} \)
+_REPLACE_RUBY_FIND_ARGS=\( ${_REPLACE_RUBY_PAT:S/-o//1} \)
replace-ruby-dirs:
${_PKG_SILENT}${_PKG_DEBUG}${FIND} ${REPLACE_RUBY_DIRS} \
- -type f ${_REPLACE_FILE_FIND_ARGS} -print | \
+ -type f ${_REPLACE_RUBY_FIND_ARGS} -print | \
while read f; do \
${SED} -e '1s| *[a-z0-9_/\.-][a-z0-9_/\.-]*/env *||g' \
-e '1s| *[a-z0-9_/\.-]*ruby|${RUBY}|' $$f > $$f.tmp; \