Changeset - r10520:4bc746bab2e4
[Not reviewed]
master
0 3 0
glx - 16 years ago 2008-12-31 16:53:43
glx@openttd.org
(svn r14777) -Fix: be sure to update ottdres.rc and rev.cpp when their .in changes (MSVC)
3 files changed with 14 insertions and 1 deletions:
0 comments (0 inline, 0 general)
projects/determineversion.vbs
Show inline comments
 
@@ -263,17 +263,22 @@ Function IsCachedVersion(ByVal version)
 
	End If
 

	
 
	If version <> cached_version Then
 
		Set cache_file = fso.CreateTextFile("../config.cache.version", True)
 
		cache_file.WriteLine(version)
 
		cache_file.Close
 
		IsCachedVersion = False
 
	Else
 
		IsCachedVersion = True
 
	End If
 
End Function
 

	
 
Function CheckFile(filename)
 
	CheckFile = FSO.FileExists(filename) And (FSO.GetFile(filename).DateLastModified >= FSO.GetFile(filename & ".in").DateLastModified)
 
End Function
 

	
 
Dim version
 
version = DetermineSVNVersion
 
If Not (IsCachedVersion(version) And FSO.FileExists("../src/rev.cpp") And FSO.FileExists("../src/ottdres.rc")) Then
 
If Not (IsCachedVersion(version) And CheckFile("../src/rev.cpp") And CheckFile("../src/ottdres.rc")) Then
 
	wscript.echo "update"
 
	UpdateFiles version
 
End If
projects/version_vs80.vcproj
Show inline comments
 
@@ -26,19 +26,23 @@
 
				Description="Determining version number"
 
				CommandLine="cscript &quot;$(InputDir)/determineversion.vbs&quot;"
 
			/>
 
			<Tool
 
				Name="VCPostBuildEventTool"
 
			/>
 
		</Configuration>
 
	</Configurations>
 
	<References>
 
	</References>
 
	<Files>
 
		<File
 
			RelativePath="..\src\ottdres.rc.in"
 
			>
 
		</File>
 
		<File
 
			RelativePath="..\src\rev.cpp.in"
 
			>
 
		</File>
 
	</Files>
 
	<Globals>
 
	</Globals>
 
</VisualStudioProject>
projects/version_vs90.vcproj
Show inline comments
 
@@ -27,19 +27,23 @@
 
				Description="Determining version number"
 
				CommandLine="cscript &quot;$(InputDir)/determineversion.vbs&quot;"
 
			/>
 
			<Tool
 
				Name="VCPostBuildEventTool"
 
			/>
 
		</Configuration>
 
	</Configurations>
 
	<References>
 
	</References>
 
	<Files>
 
		<File
 
			RelativePath="..\src\ottdres.rc.in"
 
			>
 
		</File>
 
		<File
 
			RelativePath="..\src\rev.cpp.in"
 
			>
 
		</File>
 
	</Files>
 
	<Globals>
 
	</Globals>
 
</VisualStudioProject>
0 comments (0 inline, 0 general)