File:  [mozdev] / delicious / build.xml
Revision 1.7: download - view: text, annotated - select for diffs - revision graph
Wed Apr 19 17:17:16 2006 UTC (13 years, 2 months ago) by danielfreitag
Branches: MAIN
CVS tags: v1_1, v1_0_4, v0_6_3_4, v0_6_3_3, HEAD, FutureDev_1_0
*** empty log message ***

<project name="del.icio.us" default="update" basedir=".">
	<property file="build.properties"/>
    
	<target name="build">
	    <delete dir="build"/>
	    <mkdir dir="build/chrome"/>
        <zip destfile="build/chrome/delicious.jar"
           basedir="src/chrome"
        />
        
        <copy file="src/install.rdf" tofile="build/install.rdf">
            <filterset>
              <filter token="version" value="${version}"/>
            </filterset>
       	</copy>
        
        <copy todir="build/defaults">
        	<fileset dir="src/defaults"/>
        </copy>

		<zip destfile="build/delicious-${version}.xpi"
           basedir="build"
        />
        
   	<copy file="build/delicious-${version}.xpi" tofile="downloads/delicious-${version}.xpi"/>
   	<antcall target="updateAndCopyTemplateFiles"/>
	</target>

	<target name="update">
<!--
        <zip destfile="${dir.deploy.extension}/delicious.jar"
           basedir="src/chrome"
        />
-->
        <zip destfile="${dir.deploy.extension.firefox}/delicious.jar"
           basedir="src/chrome"
        />
 <!--       <zip destfile="${dir.deploy.extension.thunderbird}/delicious.jar"
           basedir="src/chrome"
        />
        <zip destfile="${dir.deploy.extension.firefox.test}/delicious.jar"
           basedir="src/chrome"
        />-->
	</target>
	
	<target name="updateAndCopyTemplateFiles">
		
			<copy toDir="www" overwrite="true">
				<fileset dir="www/templates"/>
				<filterset>
					<filter token="version" value="${version}"/>
				</filterset>
			</copy>
		
	</target>
</project>

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