Fix up directory structure for rebar3
authorMatt Mullins <mmullins@mmlx.us>
Mon, 2 Dec 2019 03:43:24 +0000 (19:43 -0800)
committerMatt Mullins <mmullins@mmlx.us>
Mon, 2 Dec 2019 03:43:24 +0000 (19:43 -0800)
31 files changed:
amqp/src/amqp.app.src [moved from amqp/amqp.app with 100% similarity]
amqp/src/amqp.appup [moved from amqp/amqp.appup with 100% similarity]
amqp/src/amqp_app.erl [moved from amqp/amqp_app.erl with 100% similarity]
amqp/src/amqp_bot_connection.erl [moved from amqp/amqp_bot_connection.erl with 100% similarity]
amqp/src/amqp_bot_listener.erl [moved from amqp/amqp_bot_listener.erl with 100% similarity]
amqp/src/amqp_bot_sup.erl [moved from amqp/amqp_bot_sup.erl with 100% similarity]
bot-4.5.rel [deleted file]
bot.rel [deleted file]
core/src/config.erl [moved from core/config.erl with 100% similarity]
core/src/core.app.src [moved from core/core.app with 100% similarity]
core/src/core.appup [moved from core/core.appup with 100% similarity]
core/src/core_app.erl [moved from core/core_app.erl with 100% similarity]
core/src/core_sup.erl [moved from core/core_sup.erl with 100% similarity]
core/src/pid_cache.erl [moved from core/pid_cache.erl with 100% similarity]
core/src/rate_limit.erl [moved from core/rate_limit.erl with 100% similarity]
irc/src/irc.app.src [moved from irc/irc.app with 100% similarity]
irc/src/irc.appup [moved from irc/irc.appup with 100% similarity]
irc/src/irc_amqp_listener.erl [moved from irc/irc_amqp_listener.erl with 100% similarity]
irc/src/irc_app.erl [moved from irc/irc_app.erl with 100% similarity]
irc/src/irc_channel_sup.erl [moved from irc/irc_channel_sup.erl with 100% similarity]
irc/src/irc_command.erl [moved from irc/irc_command.erl with 100% similarity]
irc/src/irc_conn.erl [moved from irc/irc_conn.erl with 100% similarity]
irc/src/irc_net_sup.erl [moved from irc/irc_net_sup.erl with 100% similarity]
irc/src/irc_object_sup.erl [moved from irc/irc_object_sup.erl with 100% similarity]
irc/src/irc_pid_cache.erl [moved from irc/irc_pid_cache.erl with 100% similarity]
irc/src/irc_sup.erl [moved from irc/irc_sup.erl with 100% similarity]
irc/src/irc_user_sup.erl [moved from irc/irc_user_sup.erl with 100% similarity]
irc/src/irc_util.erl [moved from irc/irc_util.erl with 100% similarity]
irc/src/irc_util.hrl [moved from irc/irc_util.hrl with 100% similarity]
rebar.config [new file with mode: 0644]
rebar.lock [new file with mode: 0644]

similarity index 100%
rename from amqp/amqp.app
rename to amqp/src/amqp.app.src
similarity index 100%
rename from amqp/amqp.appup
rename to amqp/src/amqp.appup
similarity index 100%
rename from amqp/amqp_app.erl
rename to amqp/src/amqp_app.erl
diff --git a/bot-4.5.rel b/bot-4.5.rel
deleted file mode 100644 (file)
index 0a39390..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-{release, {"erlbot", "4.5"},
- {erts, "5.7.4"},
- [{kernel, "2.13.4"},
-  {stdlib, "1.16.4"},
-  {sasl, "2.1.8"},
-  {rabbit_common, "0.0.0"},
-  {amqp_client, "0.0.0"},
-  {core, "2"},
-  {amqp, "1"},
-  {irc, "3"}]
-}.
diff --git a/bot.rel b/bot.rel
deleted file mode 100644 (file)
index 8e551f3..0000000
--- a/bot.rel
+++ /dev/null
@@ -1,11 +0,0 @@
-{release, {"erlbot", "14"},
- {erts, "5.8.3"},
- [{kernel, "2.14.5"},
-  {stdlib, "1.17.5"},
-  {sasl, "2.1.10"},
-  {rabbit_common, "0.0.0"},
-  {amqp_client, "0.0.0"},
-  {core, "3"},
-  {amqp, "4"},
-  {irc, "13"}]
-}.
similarity index 100%
rename from core/config.erl
rename to core/src/config.erl
similarity index 100%
rename from core/core.app
rename to core/src/core.app.src
similarity index 100%
rename from core/core.appup
rename to core/src/core.appup
similarity index 100%
rename from core/core_app.erl
rename to core/src/core_app.erl
similarity index 100%
rename from core/core_sup.erl
rename to core/src/core_sup.erl
similarity index 100%
rename from core/pid_cache.erl
rename to core/src/pid_cache.erl
similarity index 100%
rename from core/rate_limit.erl
rename to core/src/rate_limit.erl
similarity index 100%
rename from irc/irc.app
rename to irc/src/irc.app.src
similarity index 100%
rename from irc/irc.appup
rename to irc/src/irc.appup
similarity index 100%
rename from irc/irc_app.erl
rename to irc/src/irc_app.erl
similarity index 100%
rename from irc/irc_command.erl
rename to irc/src/irc_command.erl
similarity index 100%
rename from irc/irc_conn.erl
rename to irc/src/irc_conn.erl
similarity index 100%
rename from irc/irc_net_sup.erl
rename to irc/src/irc_net_sup.erl
similarity index 100%
rename from irc/irc_sup.erl
rename to irc/src/irc_sup.erl
similarity index 100%
rename from irc/irc_util.erl
rename to irc/src/irc_util.erl
similarity index 100%
rename from irc/irc_util.hrl
rename to irc/src/irc_util.hrl
diff --git a/rebar.config b/rebar.config
new file mode 100644 (file)
index 0000000..acdf83f
--- /dev/null
@@ -0,0 +1,12 @@
+{project_app_dirs, ["amqp", "core", "irc"]}.
+{deps, [
+        {amqp_client, "3.6.16"}
+       ]
+}.
+{relx, [{release,
+         {bot, "14rebar"},
+         [irc, amqp, core, amqp_client]}
+       ]
+}.
+{profiles, [{prod, [{relx, [{dev_mode, false}
+                           ,{include_erts, true}]}]}]}.
diff --git a/rebar.lock b/rebar.lock
new file mode 100644 (file)
index 0000000..ef84ae7
--- /dev/null
@@ -0,0 +1,10 @@
+{"1.1.0",
+[{<<"amqp_client">>,{pkg,<<"amqp_client">>,<<"3.6.16">>},0},
+ {<<"rabbit_common">>,{pkg,<<"rabbit_common">>,<<"3.6.16">>},1},
+ {<<"recon">>,{pkg,<<"recon">>,<<"2.3.2">>},2}]}.
+[
+{pkg_hash,[
+ {<<"amqp_client">>, <<"9E61E7A021B850A3092C84B377FD6C0F19AE648E9B4CB7B41C620D4A9A397F3C">>},
+ {<<"rabbit_common">>, <<"7F6A101963C151008B42373857AD7741BE476210CFD4DF5C4746AB45FA558861">>},
+ {<<"recon">>, <<"4444C879BE323B1B133EEC5241CB84BD3821EA194C740D75617E106BE4744318">>}]}
+].