Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add rebar dependencies needed for SOAP applications

Use rebar.config.script to dynamically add SOAP dependencies if the shell
environment variable YAWS_SOAP is set. This way, Yaws users not interested
in SOAP do not need these dependencies.
  • Loading branch information...
commit 9334c88debfcaea852dff9c407c3fec86bccc102 1 parent cbed101
@vinoski vinoski authored
Showing with 20 additions and 0 deletions.
  1. +1 −0  .gitignore
  2. +19 −0 rebar.config.script
View
1  .gitignore
@@ -69,3 +69,4 @@ etc
yaws_logs
rel/yaws
dialyzer_warnings
+deps/*
View
19 rebar.config.script
@@ -0,0 +1,19 @@
+%% -*- mode: erlang;erlang-indent-level: 4;indent-tabs-mode: nil -*-
+%% ex: ft=erlang ts=4 sw=4 et
+
+SoapDeps = [{erlsom, ".*", {git, "git://github.com/willemdj/erlsom.git", {branch, "master"}}},
+ {ibrowse, ".*", {git, "git://github.com/cmullaparthi/ibrowse.git"}, {branch, "master"}},
+ {xmlrpc, ".*", {git, "git://github.com/rwbr/exmlrpc.git", {branch, "master"}}}],
+
+case os:getenv("YAWS_SOAP") of
+ false ->
+ CONFIG;
+ _ ->
+ case lists:keysearch(deps, 1, CONFIG) of
+ {value, {deps, Deps}} ->
+ NDeps = Deps ++ SoapDeps,
+ lists:keyreplace(deps, 1, CONFIG, {deps, NDeps});
+ false ->
+ CONFIG ++ [{deps, SoapDeps}]
+ end
+end.
Please sign in to comment.
Something went wrong with that request. Please try again.