removed svn_version file updating
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40580
This commit is contained in:
parent
60a37530fc
commit
300926b87d
@ -54,40 +54,6 @@ namespace builder
|
|||||||
return rev;
|
return rev;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void UpdateRevisionInfo(Package pkg, Library lib)
|
|
||||||
{
|
|
||||||
string path = Config.PathFormat("{0}/{1}", cfg.SourceBase, lib.LocalPath);
|
|
||||||
string file = Config.PathFormat("{0}/svn_version.h", path);
|
|
||||||
|
|
||||||
if (File.Exists(file))
|
|
||||||
{
|
|
||||||
UpdateRevisionInfo(path, file);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public void UpdateRevisionInfo(string path, string file)
|
|
||||||
{
|
|
||||||
string vers = cfg.ProductVersion.Replace(".", ",");
|
|
||||||
string rev = GetRevsionOfPath(path);
|
|
||||||
|
|
||||||
File.Delete(file);
|
|
||||||
StreamWriter sw = File.CreateText(file);
|
|
||||||
|
|
||||||
sw.WriteLine("/** This file is autogenerated by build scripts */");
|
|
||||||
sw.WriteLine("");
|
|
||||||
sw.WriteLine("#ifndef _INCLUDE_SVN_VERSION_H_");
|
|
||||||
sw.WriteLine("#define _INCLUDE_SVN_VERSION_H_");
|
|
||||||
sw.WriteLine("");
|
|
||||||
sw.WriteLine("#define SVN_REVISION {0}", rev);
|
|
||||||
sw.WriteLine("#define SVN_REVISION_STRING \"{0}\"", rev);
|
|
||||||
sw.WriteLine("#define SVN_FILE_VERSION {0},{1}", vers, rev);
|
|
||||||
sw.WriteLine("");
|
|
||||||
sw.WriteLine("#endif //_INCLUDE_SVN_VERSION_H_");
|
|
||||||
sw.WriteLine("");
|
|
||||||
|
|
||||||
sw.Close();
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool CopyFile(Package pkg, string source, string dest)
|
public bool CopyFile(Package pkg, string source, string dest)
|
||||||
{
|
{
|
||||||
string from = Config.PathFormat("{0}/{1}",
|
string from = Config.PathFormat("{0}/{1}",
|
||||||
@ -191,7 +157,6 @@ namespace builder
|
|||||||
string bin = null, binpath = null;
|
string bin = null, binpath = null;
|
||||||
for (int i=0; i<libs.Length; i++)
|
for (int i=0; i<libs.Length; i++)
|
||||||
{
|
{
|
||||||
UpdateRevisionInfo(pkg, libs[i]);
|
|
||||||
if (BuildLibrary(pkg, libs[i], ref bin, ref binpath))
|
if (BuildLibrary(pkg, libs[i], ref bin, ref binpath))
|
||||||
{
|
{
|
||||||
path = Config.PathFormat("{0}/{1}/{2}/{3}",
|
path = Config.PathFormat("{0}/{1}/{2}/{3}",
|
||||||
|
Loading…
Reference in New Issue
Block a user