Added call to munge license headers at the top of the postbuild phase, so it should be done within the platorm build.
authorSimon Howkins <simonh@symbian.org>
Mon, 02 Nov 2009 22:23:26 +0000
changeset 744 22e6c7258a80
parent 743 19d0e93b3fe4
child 745 254f2526f619
Added call to munge license headers at the top of the postbuild phase, so it should be done within the platorm build.
common/build.postbuild.xml
--- a/common/build.postbuild.xml	Mon Nov 09 15:52:52 2009 +0000
+++ b/common/build.postbuild.xml	Mon Nov 02 22:23:26 2009 +0000
@@ -10,7 +10,13 @@
         </then>
         </if>
         
-        <parallel>                
+        <if><istrue value="${sf.relicense.exported.headers}"/>
+        <then>
+            <runtarget target="sf-run-sfl-licence-munging"/>
+        </then>
+        </if>
+        
+        <parallel>
             <!-- TAG SOURCE CODE -->
             <if>
                 <istrue value="${sf.spec.tagafterbuild.enable}" />
@@ -813,12 +819,13 @@
         </if>
     </target>
 
-
     <target name="sf-run-sfl-licence-munging" depends="sf-check-utilities-dir" if="sf-utilities-available">    
         <echo message="Running SFL Licence Munging writing log to ${build.log.dir}"/>
+        <stopwatch name="munge" action="start"/>
         <exec executable="perl" dir="${build.drive}" failonerror="false" output="${build.log.dir}/postbuild_sfl-licence_munging_results.log">
           <arg value="${build.drive}/utilities/williamr/convert_to_eula.pl"/>
         </exec>
+        <stopwatch name="munge" action="total"/>
     </target>
 
 </project>