<feed xmlns='http://www.w3.org/2005/Atom'>
<title>relx.git/priv/templates/bin_windows, branch master</title>
<subtitle>Sane, simple release creation for Erlang.
</subtitle>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/relx.git/'/>
<entry>
<title>Fix renaming of .orig configuration files on Windows</title>
<updated>2019-02-08T09:00:24+00:00</updated>
<author>
<name>Michael Taylor</name>
<email>michael@emte.net.au</email>
</author>
<published>2016-04-15T05:54:10+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/relx.git/commit/?id=7fa443af83c26663ad569dda99a0ce4925e17477'/>
<id>7fa443af83c26663ad569dda99a0ce4925e17477</id>
<content type='text'>
Fix .orig rename commands in bin_windows

1. .orig was being prepended second argument rather than appended to the
first argument

2. Windows' ren command expects the second argument to be just a file
name (not contain drive or path components)

3. Tidy up appending of .orig, place inside double quotes rather than
outside of quotes.

This matches the usage a few lines later:
@if exist "%rel_dir%\%rel_name%.boot" (

Copy rename commands from bin_windows to extended_bin_windows.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix .orig rename commands in bin_windows

1. .orig was being prepended second argument rather than appended to the
first argument

2. Windows' ren command expects the second argument to be just a file
name (not contain drive or path components)

3. Tidy up appending of .orig, place inside double quotes rather than
outside of quotes.

This matches the usage a few lines later:
@if exist "%rel_dir%\%rel_name%.boot" (

Copy rename commands from bin_windows to extended_bin_windows.
</pre>
</div>
</content>
</entry>
<entry>
<title>Prevent .erlang from prepending string to the erl root dir</title>
<updated>2017-09-11T12:57:17+00:00</updated>
<author>
<name>bitnitdit</name>
<email>bitnitdit@gmail.com</email>
</author>
<published>2017-09-11T12:57:17+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/relx.git/commit/?id=25196f4b994df5364eb060bff8418a0154622ed4'/>
<id>25196f4b994df5364eb060bff8418a0154622ed4</id>
<content type='text'>
Any output string from .erlang to stdout will be prepend to
code:root_dir(), so it will cause the retrieved dir incorrect.

The fix is to start erl with the no_dot_erlang boot file.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Any output string from .erlang to stdout will be prepend to
code:root_dir(), so it will cause the retrieved dir incorrect.

The fix is to start erl with the no_dot_erlang boot file.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fixing windows paths for bin scripts</title>
<updated>2017-07-05T17:29:13+00:00</updated>
<author>
<name>Fred Hebert</name>
<email>mononcqc@ferd.ca</email>
</author>
<published>2017-07-05T17:29:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/relx.git/commit/?id=567eeaab1f5dd7b3792cd8390633353dd7088fbf'/>
<id>567eeaab1f5dd7b3792cd8390633353dd7088fbf</id>
<content type='text'>
The syntax for proper path handling when the path may contain
parentheses (such as C:\Program Files (x86)\...) requires quoting the
entire assignment expression:

    set "var=%val%"

any other way of doing it may interpret the parentheses and cause
failures.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The syntax for proper path handling when the path may contain
parentheses (such as C:\Program Files (x86)\...) requires quoting the
entire assignment expression:

    set "var=%val%"

any other way of doing it may interpret the parentheses and cause
failures.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix replace os vars functionality</title>
<updated>2016-10-27T17:57:39+00:00</updated>
<author>
<name>Luis Rascao</name>
<email>luis.rascao@gmail.com</email>
</author>
<published>2016-10-23T22:47:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/relx.git/commit/?id=f0e0d1acc7e4b645e9dac38e8323bbc1cb8fb03c'/>
<id>f0e0d1acc7e4b645e9dac38e8323bbc1cb8fb03c</id>
<content type='text'>
The first run would correctly replace the environment
variables, however it would also overwrite the original
vm.args and sys.config thus preventing any further
substitution in subsequent runs.
Dev mode runs were also broken, all runs after the
first were required to also define the
RELX_REPLACE_OS_VARS variable in order not to
overwrite the current vm.args with the original one,
this prevented simply attaching to an already running
node that was started this way.

Add tests to exercise this functionality.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The first run would correctly replace the environment
variables, however it would also overwrite the original
vm.args and sys.config thus preventing any further
substitution in subsequent runs.
Dev mode runs were also broken, all runs after the
first were required to also define the
RELX_REPLACE_OS_VARS variable in order not to
overwrite the current vm.args with the original one,
this prevented simply attaching to an already running
node that was started this way.

Add tests to exercise this functionality.
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #479 from emtenet/add-boot-var</title>
<updated>2016-08-24T19:44:03+00:00</updated>
<author>
<name>Tristan Sloughter</name>
<email>t@crashfast.com</email>
</author>
<published>2016-08-24T19:44:03+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/relx.git/commit/?id=766a2fb0c1724193a5846c3baee5d7f17f343ac5'/>
<id>766a2fb0c1724193a5846c3baee5d7f17f343ac5</id>
<content type='text'>
Fix for #478 Boot variable $ERTS_LIB_DIR not supplied in Windows scripts</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix for #478 Boot variable $ERTS_LIB_DIR not supplied in Windows scripts</pre>
</div>
</content>
</entry>
<entry>
<title>Add a boot variable to Windows scripts</title>
<updated>2016-04-29T12:01:08+00:00</updated>
<author>
<name>emtenet</name>
<email>michael@emte.net.au</email>
</author>
<published>2016-04-16T03:09:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/relx.git/commit/?id=77b8e9202715d526b1bae06b4a8a7882e501dfdc'/>
<id>77b8e9202715d526b1bae06b4a8a7882e501dfdc</id>
<content type='text'>
Add missing -boot_var argument to Windows scripts when starting erlang.

Use different boot variables on Windows vs non-Windows.

The built-in $ROOT boot variable points to the erts directory on Windows
(dictated by erl.ini [erlang] Rootdir=) and so a boot variable $RELEASE_DIR
is made pointing to the release directory
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add missing -boot_var argument to Windows scripts when starting erlang.

Use different boot variables on Windows vs non-Windows.

The built-in $ROOT boot variable points to the erts directory on Windows
(dictated by erl.ini [erlang] Rootdir=) and so a boot variable $RELEASE_DIR
is made pointing to the release directory
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix erts path discovery on Windows if the path contains spaces.</title>
<updated>2016-04-05T15:32:18+00:00</updated>
<author>
<name>Benedikt Reinartz</name>
<email>filmor@gmail.com</email>
</author>
<published>2016-04-05T15:32:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/relx.git/commit/?id=2ff5cb306a78bde3eea04d4379eb2c3a5dd2185e'/>
<id>2ff5cb306a78bde3eea04d4379eb2c3a5dd2185e</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>replacing OS vars: use .orig files to prevent overwriting</title>
<updated>2016-01-23T18:56:01+00:00</updated>
<author>
<name>erlanger</name>
<email>erlanger</email>
</author>
<published>2016-01-23T17:48:55+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/relx.git/commit/?id=447df9204eddb92e3ce8ace581add4e7bba040e1'/>
<id>447df9204eddb92e3ce8ace581add4e7bba040e1</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>use mustache instead of erlydtl for overlays</title>
<updated>2015-05-08T16:16:53+00:00</updated>
<author>
<name>Tristan Sloughter</name>
<email>t@crashfast.com</email>
</author>
<published>2015-04-29T03:36:44+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/relx.git/commit/?id=88d1f29257869b0de9369881236477163804125a'/>
<id>88d1f29257869b0de9369881236477163804125a</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
