aboutsummaryrefslogtreecommitdiffstats
path: root/bootstrap.cmd
diff options
context:
space:
mode:
authorJordan Wilberding <[email protected]>2014-04-07 10:50:10 +0200
committerJordan Wilberding <[email protected]>2014-04-07 10:50:10 +0200
commit5561818c5620066899a6bf74ae59a873d94d8aef (patch)
tree2614d3b766862978523eb49e6dd3f6e71c73c21a /bootstrap.cmd
parent0d292ff4c1be173a775628c09d1ac9991fdd8e67 (diff)
parent879108a2aa4e463df1b14830661c0820fcdccb11 (diff)
downloadrelx-5561818c5620066899a6bf74ae59a873d94d8aef.tar.gz
relx-5561818c5620066899a6bf74ae59a873d94d8aef.tar.bz2
relx-5561818c5620066899a6bf74ae59a873d94d8aef.zip
Merge pull request #159 from nuex/windows
Windows Support
Diffstat (limited to 'bootstrap.cmd')
-rw-r--r--bootstrap.cmd12
1 files changed, 12 insertions, 0 deletions
diff --git a/bootstrap.cmd b/bootstrap.cmd
new file mode 100644
index 0000000..86ffc7f
--- /dev/null
+++ b/bootstrap.cmd
@@ -0,0 +1,12 @@
+:: A script to build relx on Windows
+:: Requires rebar
+
+:: Get dependencies, compile and escriptize relx
+@cmd /c @rebar -r get-deps compile escriptize
+
+:: Create a shortcut file for running the relx command
+@set relx_cmd=relx.cmd
+@echo @echo off > %relx_cmd%
+@echo setlocal >> %relx_cmd%
+@echo set relx=%%~f0 >> %relx_cmd%
+@echo escript ^"%%relx:.cmd=%%^" %%* >> %relx_cmd%