Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.xiph.org/xiph/opus.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
authorJoshua Milas <josh.milas@gmail.com>2014-06-23 06:24:48 +0400
committerRalph Giles <giles@mozilla.com>2014-07-03 22:23:37 +0400
commitbb4b6885a139644cf3ac14e7deda9f633ec2d93c (patch)
tree1157f6b3d326ada3584dbc4fe26baaff649d823a /win32
parent7b8ae17ac1b7cb506cd59f3a22d7cc7e2c487849 (diff)
Add ~ to the arguments of genversion.bat
genversion.bat would fail if an argument was passed with quotations. This is because the quotations were not being stripped before using them as variables, causing the _temp files not being created. Adding ~ to the arguments causes windows to strip the quotations, enabling it to be used with path names containing spaces and the MSVS pre-build event. Signed-off-by: Ralph Giles <giles@mozilla.com>
Diffstat (limited to 'win32')
-rw-r--r--win32/genversion.bat12
1 files changed, 6 insertions, 6 deletions
diff --git a/win32/genversion.bat b/win32/genversion.bat
index a9b9353a..cd1d4dce 100644
--- a/win32/genversion.bat
+++ b/win32/genversion.bat
@@ -23,10 +23,10 @@ set version=!version: =!
:gotversion
-set version_out=#define %2 "%version%"
-set version_mk=%2 = "%version%"
+set version_out=#define %~2 "%version%"
+set version_mk=%~2 = "%version%"
-echo %version_out%> "%1_temp"
+echo %version_out%> "%~1_temp"
if %version%==unknown goto :skipgenerate
@@ -35,12 +35,12 @@ echo %version_mk%>> "%~dp0..\version.mk"
:skipgenerate
-echo n | comp "%1_temp" "%1" > NUL 2> NUL
+echo n | comp "%~1_temp" "%~1" > NUL 2> NUL
if not errorlevel 1 goto exit
-copy /y "%1_temp" "%1"
+copy /y "%~1_temp" "%~1"
:exit
-del "%1_temp"
+del "%~1_temp"