forked from mirror/OpenTTD
(svn r11090) -Fix (r11089): incorrect version format and failure with paths containing spaces
This commit is contained in:
@@ -40,7 +40,7 @@ Function DetermineSVNVersion()
|
||||
Dim file
|
||||
' Write some "magic" to a temporary file so we can acquire the svn revision/state
|
||||
Set file = FSO.CreateTextFile("tsvn_tmp", -1, 0)
|
||||
file.WriteLine "$WCREV$$WCMODS?M:$"
|
||||
file.WriteLine "r$WCREV$$WCMODS?M:$"
|
||||
file.WriteLine "$WCURL$"
|
||||
file.Close
|
||||
Set oExec = WshShell.Exec(sTortoise & "\bin\SubWCRev.exe ../src tsvn_tmp tsvn_tmp")
|
||||
@@ -85,7 +85,7 @@ Function DetermineSVNVersion()
|
||||
url = line
|
||||
End If
|
||||
If InStr(line, "Last Changed Rev") Then
|
||||
version = Mid(line, 19) & modified
|
||||
version = "r" & Mid(line, 19) & modified
|
||||
End If
|
||||
Loop While Not OExec.StdOut.atEndOfStream
|
||||
End If
|
||||
|
@@ -75,7 +75,7 @@
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
Description="Determining version number"
|
||||
CommandLine="$(InputDir)/determineversion.vbs"/>
|
||||
CommandLine=""$(InputDir)/determineversion.vbs""/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"/>
|
||||
<Tool
|
||||
@@ -139,7 +139,7 @@
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
Description="Determining version number"
|
||||
CommandLine="$(InputDir)/determineversion.vbs"/>
|
||||
CommandLine=""$(InputDir)/determineversion.vbs""/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"/>
|
||||
<Tool
|
||||
|
@@ -75,7 +75,7 @@
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
Description="Determining version number"
|
||||
CommandLine="$(InputDir)/determineversion.vbs"/>
|
||||
CommandLine=""$(InputDir)/determineversion.vbs""/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"/>
|
||||
<Tool
|
||||
@@ -139,7 +139,7 @@
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
Description="Determining version number"
|
||||
CommandLine="$(InputDir)/determineversion.vbs"/>
|
||||
CommandLine=""$(InputDir)/determineversion.vbs""/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"/>
|
||||
<Tool
|
||||
|
@@ -34,7 +34,7 @@
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
Description="Determining version number"
|
||||
CommandLine="$(InputDir)/determineversion.vbs"
|
||||
CommandLine=""$(InputDir)/determineversion.vbs""
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
@@ -147,7 +147,7 @@
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
Description="Determining version number"
|
||||
CommandLine="$(InputDir)/determineversion.vbs"
|
||||
CommandLine=""$(InputDir)/determineversion.vbs""
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
@@ -260,7 +260,7 @@
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
Description="Determining version number"
|
||||
CommandLine="$(InputDir)/determineversion.vbs"
|
||||
CommandLine=""$(InputDir)/determineversion.vbs""
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
@@ -357,7 +357,7 @@
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
Description="Determining version number"
|
||||
CommandLine="$(InputDir)/determineversion.vbs"
|
||||
CommandLine=""$(InputDir)/determineversion.vbs""
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
|
@@ -34,7 +34,7 @@
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
Description="Determining version number"
|
||||
CommandLine="$(InputDir)/determineversion.vbs"
|
||||
CommandLine=""$(InputDir)/determineversion.vbs""
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
@@ -147,7 +147,7 @@
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
Description="Determining version number"
|
||||
CommandLine="$(InputDir)/determineversion.vbs"
|
||||
CommandLine=""$(InputDir)/determineversion.vbs""
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
@@ -260,7 +260,7 @@
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
Description="Determining version number"
|
||||
CommandLine="$(InputDir)/determineversion.vbs"
|
||||
CommandLine=""$(InputDir)/determineversion.vbs""
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
@@ -357,7 +357,7 @@
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
Description="Determining version number"
|
||||
CommandLine="$(InputDir)/determineversion.vbs"
|
||||
CommandLine=""$(InputDir)/determineversion.vbs""
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
|
Reference in New Issue
Block a user