File:  [mozdev] / customizeheadertoolbar / src / build.xml
Revision 1.2: download - view: text, annotated - select for diffs - revision graph
Mon Oct 26 23:15:38 2009 UTC (8 years, 9 months ago) by joachim.herb
Branches: MAIN
CVS tags: V_0_3_1, V_0_3_0, HEAD
New version: 0.1.3
Changing the layout (classical, wide, vertical) no should not break the header pane toolbar customization.

<?xml version="1.0" ?>

<project name="CustomizeHeaderToolbar" default="dist">
  <property name="src.dir" value="." />
  <property name="dist.dir" value="../downloads/"/>
  <property name="www.dir" value="../www/"/>

  <taskdef name="xmltask" classname="com.oopsconsultancy.xmltask.ant.XmlTask"/>
    
  <xmltask source="./install.rdf">
    <copy path="//em:version/text()" property="app.version"/>   
    <copy path="//em:name/text()" property="app.name"/>   
    <copy path="//em:id/text()" property="app.id"/>   
  </xmltask>
    
  <target name="dist" depends="spreadVersion">
    <zip destfile="${dist.dir}/${app.name}-${app.version}.xpi">
      <fileset dir="${src.dir}">
        <include name="chrome.manifest" />
        <include name="install.rdf" />
        <include name="defaults/**" />
        <include name="chrome/**" />        
        <exclude name="**/.*" />
        <exclude name="**/CVS/**" />
      </fileset>
    </zip>
  </target>
  
  <target name="clean">
    <delete file="${dist.dir}/${app.name}-${app.version}.xpi" />
  </target>
    
  <target name="spreadVersion">
  <!--
    <xmltask source="${www.dir}/availVersion.xml" dest="${www.dir}/availVersion.xml.new">
      <replace path="/updates/update[@server='mozdev']/@version" withText="${app.version}"/> 
    </xmltask>
    <move file="${www.dir}/availVersion.xml.new" tofile="${www.dir}/availVersion.xml"/>
  -->
    <replaceregexp file="${www.dir}/installation.html" 
                   byline="true"
                   match="(.*update the version.*CustomizeHeaderToolbar-).*(.xpi&quot;>Version ).*( of Cu.*)"
                   replace="\1${app.version}\2${app.version}\3"/>                   

  </target>  

</project>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>