summaryrefslogtreecommitdiff
path: root/lang/ruby/replace.mk
diff options
context:
space:
mode:
authorminskim <minskim@pkgsrc.org>2008-09-22 16:42:06 +0000
committerminskim <minskim@pkgsrc.org>2008-09-22 16:42:06 +0000
commitdf0e05cfec502e47a7599753a931fdc732fc7300 (patch)
tree50a89361e8d9d25a4bd9f979f97aa9ac0d6a5487 /lang/ruby/replace.mk
parent9a584ea0c275d81524fde9c9b9aa6a0aa182b00c (diff)
downloadpkgsrc-df0e05cfec502e47a7599753a931fdc732fc7300.tar.gz
Make the change made in replace.mk 1.10 work on Solaris.
Previously, a non-existing directory in REPLACE_RUBY_DIRS stopped the build on Solaris.
Diffstat (limited to 'lang/ruby/replace.mk')
-rw-r--r--lang/ruby/replace.mk6
1 files changed, 4 insertions, 2 deletions
diff --git a/lang/ruby/replace.mk b/lang/ruby/replace.mk
index 22960759db4..9e706e2e025 100644
--- a/lang/ruby/replace.mk
+++ b/lang/ruby/replace.mk
@@ -1,4 +1,4 @@
-# $NetBSD: replace.mk,v 1.11 2008/09/21 21:50:31 minskim Exp $
+# $NetBSD: replace.mk,v 1.12 2008/09/22 16:42:06 minskim Exp $
#
.if !defined(_RUBY_REPLACE_MK)
@@ -38,7 +38,9 @@ _REPLACE_RUBY_FIND_ARGS=\( ${_REPLACE_RUBY_PAT:S/-o//1} \)
replace-ruby-dirs:
${RUN} cd ${WRKSRC} && \
for d in ${REPLACE_RUBY_DIRS}; do \
- test -d $$d && dirs="$$dirs $$d"; \
+ if [ -d $$d ]; then \
+ dirs="$$dirs $$d"; \
+ fi; \
done; \
if [ -z "$$dirs" ]; then \
exit 0; \