Commits

Kota UENISHI committed a099780

release handling

  • Participants
  • Parent commits e766f64

Comments (0)

Files changed (5)

 # If so, define the subdirectory targets and uncomment this section.
 #
 
-.SUBDIRS: omake cerl c c++ ocaml haskell
+.SUBDIRS: omake cerl c c++ ocaml haskell erlang
 
 ########################################################################
 # C configuration.

File erlang/OMakefile

 # If so, define the subdirectory targets and uncomment this section.
 #
 
-# .SUBDIRS:
+.SUBDIRS: otp_test
 
 ########################################################################
 # C configuration.

File erlang/otp_test/Makefile

-all:: compile deploy
+all:: compile
 
 compile::
-	cd src ; erl -make
-
-deploy::
-	cp src/*.beam ebin/
+	./rebar compile
 
 clean::
 	-rm src/*.beam
 	-rm ebin/*.beam
 
-edoc::
-	@echo $<
+eunit::
+	./rebar eunit

File erlang/otp_test/rebar

Binary file added.

File erlang/otp_test/rel/reltool.config

+{sys, [
+       {lib_dirs, []},
+       {rel, "mynode", "1",
+        [
+         kernel,
+         stdlib,
+         sasl
+        ]},
+       {rel, "start_clean", "",
+        [
+         kernel,
+         stdlib
+        ]},
+       {boot_rel, "mynode"},
+       {profile, embedded},
+       {excl_sys_filters, ["^bin/.*",
+                           "^erts.*/bin/(dialyzer|typer)"]},
+       {app, sasl, [{incl_cond, include}]}
+      ]}.
+
+{target_dir, "mynode"}.
+
+{overlay, [
+           {mkdir, "log/sasl"},
+           {copy, "files/erl", "{{erts_vsn}}/bin/erl"},
+           {copy, "files/nodetool", "{{erts_vsn}}/bin/nodetool"},
+           {copy, "files/mynode", "bin/mynode"},
+           {copy, "files/app.config", "etc/app.config"},
+           {copy, "files/vm.args", "etc/vm.args"}
+           ]}.