diff options
author | minskim <minskim> | 2008-09-22 16:42:06 +0000 |
---|---|---|
committer | minskim <minskim> | 2008-09-22 16:42:06 +0000 |
commit | 245ccc513a9c2aeb1a93701e9f2647a330d313fa (patch) | |
tree | 50a89361e8d9d25a4bd9f979f97aa9ac0d6a5487 | |
parent | 6088e2373f5ac1e0af3954a71ec1f03eec00e1c8 (diff) | |
download | pkgsrc-245ccc513a9c2aeb1a93701e9f2647a330d313fa.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; \ |