diff --git a/tools/builder/ABuilder.cs b/tools/builder/ABuilder.cs index d1f7016f..0d198ca1 100644 --- a/tools/builder/ABuilder.cs +++ b/tools/builder/ABuilder.cs @@ -54,40 +54,6 @@ namespace builder 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) { string from = Config.PathFormat("{0}/{1}", @@ -191,7 +157,6 @@ namespace builder string bin = null, binpath = null; for (int i=0; i