Skip to content

Commit

Permalink
buildable with spaces in path
Browse files Browse the repository at this point in the history
  • Loading branch information
hendrikp committed Nov 29, 2013
1 parent 71aa9c2 commit db0cb10
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 9 deletions.
4 changes: 2 additions & 2 deletions latestredist.info
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Plugin_SDK_1.3.0.0.exe
http://dl.bintray.com/content/hendrikpolczyn/CryEngine-Plugins/Plugin_SDK_1.3.0.0.exe
Plugin_SDK_2.0.0.0.exe
http://dl.bintray.com/content/hendrikpolczyn/CryEngine-Plugins/Plugin_SDK_2.0.0.0.exe
9 changes: 6 additions & 3 deletions tools/determine_cdkversion.bat
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
:: This is an prebuilt script part of the Plugin SDK
@echo off
::@echo off

set "dynheaderfile=%~dp0\..\inc\CDKVersion_generated.tmp"
set "dynheaderfile=%~dp0..\inc\CDKVersion_generated.tmp"
set "tempvers=%~dp0tempvers.tmp"

for /f "tokens=1-3 delims=, " %%A in ('%~dp0\sigcheck -n -q %~dp0\..\..\..\Bin32\CrySystem.dll') do (
"%~dp0sigcheck.exe" -n -q "%~dp0..\..\..\Bin32\CrySystem.dll" > "%tempvers%"

for /f "usebackq tokens=1-3 delims=, " %%A in ("%tempvers%") do (
echo Plugin SDK detected CryEngine %%~A.%%~B.%%~C

echo /* This file was automatically generated by determine_cdkversion.bat */> "%dynheaderfile%"
Expand Down
4 changes: 2 additions & 2 deletions tools/stylecode.bat
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ set "APROFILE=%~dp0codestyle.astylerc"
set "SOURCEDIR=%~dp0.."

:: sourcecode path to indent
if not (%~1)==() (
if not ("%~1")==("") (
set "SOURCEDIR=%~1"
)

:: use a personal style or a style suitable for source control / team?
if not (%~2)==() (
if not ("%~2")==("") (
if exist "%~2" (
set "APROFILE=%~2"
)
Expand Down
4 changes: 2 additions & 2 deletions wizard/vc10/Templates/1033/tools/stylecode.bat
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ set "APROFILE=%~dp0codestyle.astylerc"
set "SOURCEDIR=%~dp0.."

:: sourcecode path to indent
if not (%~1)==() (
if not ("%~1")==("") (
set "SOURCEDIR=%~1"
)

:: use a personal style or a style suitable for source control / team?
if not (%~2)==() (
if not ("%~2")==("") (
if exist "%~2" (
set "APROFILE=%~2"
)
Expand Down

0 comments on commit db0cb10

Please sign in to comment.