Add rebar.config.script for supporting rebar2
diff --git a/rebar.config.script b/rebar.config.script
new file mode 100644
index 0000000..7e342b4
--- /dev/null
+++ b/rebar.config.script
@@ -0,0 +1,14 @@
+%% -*- erlang -*-
+IsRebar3 = erlang:function_exported(rebar3, main, 1),
+
+Rebar2Deps =
+ [
+ {local, ".*", {git, "https://github.com/sile/local.git", {tag, "0.2.0"}}},
+ {passage, ".*", {git, "https://github.com/sile/passage.git", {tag, "0.2.4"}}},
+ {thrift_protocol, ".*", {git, "https://github.com/sile/thrift_protocol.git", {tag, "0.1.2"}}}
+ ],
+
+case IsRebar3 of
+ true -> CONFIG;
+ false -> lists:keyreplace(deps, 1, CONFIG, {deps, Rebar2Deps})
+end.