diff options
author | taca <taca@pkgsrc.org> | 2007-12-13 14:46:58 +0000 |
---|---|---|
committer | taca <taca@pkgsrc.org> | 2007-12-13 14:46:58 +0000 |
commit | 9a5ce3acf42ccc8a9f07d020b5e9e22ff01a4ad9 (patch) | |
tree | 23f263ec7eb1987c53d53c6a1625a5cd91f090ba /lang/ruby | |
parent | defd23c2c9dacc854091209dfd317e0ea376525c (diff) | |
download | pkgsrc-9a5ce3acf42ccc8a9f07d020b5e9e22ff01a4ad9.tar.gz |
Use more Ruby specific name: s/REPLACE_FILE_PAT/REPLACE_RUBY_PAT/.
Diffstat (limited to 'lang/ruby')
-rw-r--r-- | lang/ruby/replace.mk | 16 |
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; \ |