kocolosk commented on a change in pull request #3337:
URL: https://github.com/apache/couchdb/pull/3337#discussion_r561369979



##########
File path: dev/make_boot_script
##########
@@ -0,0 +1,9 @@
+#!/usr/bin/env escript
+
+main(_) ->
+    {ok, Server} = reltool:start_server([
+        {config, "../rel/reltool.config"}
+    ]),
+    {ok, Release} = reltool:get_rel(Server, "couchdb"),
+    ok = file:write_file("devnode.rel", io_lib:format("~p.~n", [Release])),
+    ok = systools:make_script("devnode", [local]).

Review comment:
       This is really where the magic happens -- we take the existing 
`reltool.config` file and generate a .boot script with the `local` option, 
which automatically uses the existing paths for all the modules instead of 
relocatable ones like we have in the actual release.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to