File:  [mozdev] / totaltoolbar / build.xml
Revision 1.5: download - view: text, annotated - select for diffs - revision graph
Sun Aug 11 20:06:20 2013 UTC (5 years, 6 months ago) by alta88
Branches: MAIN
CVS tags: HEAD
TotalToolbar v1.9.3

<?xml version="1.0" ?>

<project name="totaltoolbar" default="make.flat.xpi">
  <property name="src.dir" value="src" />
  <!-- <property name="www.dir" value="www" /> -->
  <property name="dist.dir" value="downloads" />
  <property name="app.name" value="TotalToolbar-1.9.3" />

  <target name="make.jar">
    <mkdir dir="${dist.dir}" />
    <zip destfile="${dist.dir}/${app.name}.jar">
      <fileset dir="${src.dir}">
        <include name="chrome/**" />
        <exclude name="**/.*" />
        <exclude name="**/CVS/**" />
      </fileset>
    </zip>
  </target>

  <target name="make.xpi" depends="make.jar">
    <zip destfile="${dist.dir}/_${app.name}_jar.xpi">
      <zipfileset file="${dist.dir}/${app.name}.jar" prefix="chrome"/>
      <fileset dir="${src.dir}">
        <include name="chrome.manifest" />
        <include name="install.rdf" />
        <include name="defaults/**" />
        <exclude name="**/.*" />
        <exclude name="**/CVS/**" />
      </fileset>
    </zip>
  </target>

  <target name="make.flat.xpi">
    <zip destfile="${dist.dir}/${app.name}.xpi">
      <fileset dir="${src.dir}">
        <include name="chrome/**" />
        <include name="defaults/**" />
        <include name="chrome.manifest" />
        <include name="install.rdf" />
        <exclude name="**/.*" />
        <exclude name="**/CVS/**" />
      </fileset>
    </zip>
  </target>

</project>

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