diff options
author | minskim <minskim@pkgsrc.org> | 2008-09-22 16:42:06 +0000 |
---|---|---|
committer | minskim <minskim@pkgsrc.org> | 2008-09-22 16:42:06 +0000 |
commit | d3776fdde668c943ee7667b43955632aecaf7474 (patch) | |
tree | 50a89361e8d9d25a4bd9f979f97aa9ac0d6a5487 | |
parent | 5484ce0e4228a2846b9a4765cddc5457139705a7 (diff) | |
download | pkgsrc-d3776fdde668c943ee7667b43955632aecaf7474.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.
-rw-r--r-- | lang/ruby/replace.mk | 6 |
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; \ |