1.1 --- a/tools/builder/ABuilder.cs Sat Mar 03 08:56:45 2007 +0000
1.2 +++ b/tools/builder/ABuilder.cs Sat Mar 03 09:37:47 2007 +0000
1.3 @@ -54,40 +54,6 @@
1.4 return rev;
1.5 }
1.6
1.7 - public void UpdateRevisionInfo(Package pkg, Library lib)
1.8 - {
1.9 - string path = Config.PathFormat("{0}/{1}", cfg.SourceBase, lib.LocalPath);
1.10 - string file = Config.PathFormat("{0}/svn_version.h", path);
1.11 -
1.12 - if (File.Exists(file))
1.13 - {
1.14 - UpdateRevisionInfo(path, file);
1.15 - }
1.16 - }
1.17 -
1.18 - public void UpdateRevisionInfo(string path, string file)
1.19 - {
1.20 - string vers = cfg.ProductVersion.Replace(".", ",");
1.21 - string rev = GetRevsionOfPath(path);
1.22 -
1.23 - File.Delete(file);
1.24 - StreamWriter sw = File.CreateText(file);
1.25 -
1.26 - sw.WriteLine("/** This file is autogenerated by build scripts */");
1.27 - sw.WriteLine("");
1.28 - sw.WriteLine("#ifndef _INCLUDE_SVN_VERSION_H_");
1.29 - sw.WriteLine("#define _INCLUDE_SVN_VERSION_H_");
1.30 - sw.WriteLine("");
1.31 - sw.WriteLine("#define SVN_REVISION {0}", rev);
1.32 - sw.WriteLine("#define SVN_REVISION_STRING \"{0}\"", rev);
1.33 - sw.WriteLine("#define SVN_FILE_VERSION {0},{1}", vers, rev);
1.34 - sw.WriteLine("");
1.35 - sw.WriteLine("#endif //_INCLUDE_SVN_VERSION_H_");
1.36 - sw.WriteLine("");
1.37 -
1.38 - sw.Close();
1.39 - }
1.40 -
1.41 public bool CopyFile(Package pkg, string source, string dest)
1.42 {
1.43 string from = Config.PathFormat("{0}/{1}",
1.44 @@ -191,7 +157,6 @@
1.45 string bin = null, binpath = null;
1.46 for (int i=0; i<libs.Length; i++)
1.47 {
1.48 - UpdateRevisionInfo(pkg, libs[i]);
1.49 if (BuildLibrary(pkg, libs[i], ref bin, ref binpath))
1.50 {
1.51 path = Config.PathFormat("{0}/{1}/{2}/{3}",