Generate BuildInfo.txt based upon new sf.spec.sbs.variant property
authorShabe Razvi <shaber@symbian.org>
Mon, 21 Sep 2009 17:25:45 +0100
changeset 482 81211967e594
parent 481 83ca46124914
child 483 e72afbf7a8c9
Generate BuildInfo.txt based upon new sf.spec.sbs.variant property
sf-platform/build.xml
--- a/sf-platform/build.xml	Mon Sep 21 16:47:26 2009 +0100
+++ b/sf-platform/build.xml	Mon Sep 21 17:25:45 2009 +0100
@@ -22,7 +22,15 @@
     <echo>[SF-BUILD-NOPREP] WARNING: Not generating model from packages</echo>
   </target>
 
-  <target name="sf-platform-bootstrap" depends="sf-platform-bootstrap-gt,sf-platform-bootstrap-s60"/>
+  <target name="sf-platform-bootstrap" depends="sf-gen-buildinfo-txt,sf-platform-bootstrap-gt,sf-platform-bootstrap-s60"/>
+
+  <target name="sf-gen-buildinfo-txt">
+    <mkdir dir="${build.drive}/epoc32/data/"/> 
+    <delete file="${build.drive}/epoc32/data/BuildInfo.txt"/>
+    <echo file="${build.drive}/epoc32/data/BuildInfo.txt" append="true" message="DeviceFamily               100 ${line.separator}"/>
+    <echo file="${build.drive}/epoc32/data/BuildInfo.txt" append="true" message="DeviceFamilyRev            0x900 ${line.separator}"/>
+    <echo file="${build.drive}/epoc32/data/BuildInfo.txt" append="true" message="ManufacturerSoftwareBuild  ${build.id}_Symbian_OS_v${sf.spec.sbs.variant} ${line.separator}"/>
+  </target>
 
   <target name="sf-platform-bootstrap-gt" >
     <echo>[SF-platform-bootstrap-gt]</echo>