aboutsummaryrefslogtreecommitdiffstats
path: root/priv/templates/extended_bin_windows
diff options
context:
space:
mode:
authorLuis Rascão <[email protected]>2019-02-10 12:53:16 +0000
committerGitHub <[email protected]>2019-02-10 12:53:16 +0000
commit651b85192f2013d2b76c34f202435aca8c529a99 (patch)
treeb66d4f2d69a168d76d26e36cf9a8f771d319265a /priv/templates/extended_bin_windows
parent8d947fcadb3770f51c4aae73bc4a55ea979bc640 (diff)
parent50c50a5cc4727ed6a982e27fafff8568b5e83d39 (diff)
downloadrelx-651b85192f2013d2b76c34f202435aca8c529a99.tar.gz
relx-651b85192f2013d2b76c34f202435aca8c529a99.tar.bz2
relx-651b85192f2013d2b76c34f202435aca8c529a99.zip
Merge pull request #684 from tolbrino/pr-win32-origfile
[UPDATED] Fix renaming of .orig configuration files on Windows
Diffstat (limited to 'priv/templates/extended_bin_windows')
-rw-r--r--priv/templates/extended_bin_windows15
1 files changed, 14 insertions, 1 deletions
diff --git a/priv/templates/extended_bin_windows b/priv/templates/extended_bin_windows
index 045a80c..ec70c47 100644
--- a/priv/templates/extended_bin_windows
+++ b/priv/templates/extended_bin_windows
@@ -148,8 +148,21 @@
:: Find the sys.config file
:find_sys_config
@set "possible_sys=%rel_dir%\sys.config"
-@if exist %possible_sys% (
+@if exist "%possible_sys%" (
set sys_config=-config "%possible_sys%"
+) else (
+ @if exist "%possible_sys%.orig" (
+ ren "%possible_sys%.orig" sys.config
+ set sys_config=-config "%possible_sys%"
+ )
+)
+
+:: Find the vm.args file
+:find_vm_args
+@if not exist "%m_args%" (
+ @if exist "%m_args%.orig" (
+ ren "%m_args%.orig" vm.args
+ )
)
@goto :eof