File:  [mozdev] / russkey / build.xml
Revision 1.5: download - view: text, annotated - select for diffs - revision graph
Sat May 31 22:29:07 2008 UTC (11 years, 8 months ago) by romanmir
Branches: MAIN
CVS tags: HEAD
removing instal.js

    1: <?xml version="1.0"?>
    2: <project name="russkey.jar" basedir="." default="build">
    3: 
    4: 	<property file="build.properties"/>
    5: 
    6: 	<target name="clean">
    7: 		<delete dir="${build_dir}"/>
    8: 		<delete dir="${temp_dir}"/>
    9: 	</target>
   10: 
   11: 	<target name="init" depends="clean">
   12: 		<!-- Create the build directory structure used by compile -->
   13: 		<mkdir dir="${build_dir}" />
   14: 		<mkdir dir="${build_dir}/${chrome_dir}"/>
   15: 		<mkdir dir="${temp_dir}" />
   16: 		<mkdir dir="${temp_dir}/${chrome_dir}/${content_dir}/${russkey_dir}"/>
   17: 		<mkdir dir="${temp_dir}/${chrome_dir}/${locale_dir}/${russkey_dir}/${en_us_dir}"/>
   18: 		<mkdir dir="${temp_dir}/${chrome_dir}/${skin_dir}/${classic_dir}/${russkey_dir}"/>
   19: 	</target>
   20: 
   21: 	<target name="copy_installers" depends="init">
   22: 		<copy todir="${build_dir}">
   23: 			<fileset dir="${src_dir}/${installers_dir}/" />
   24: 		</copy>
   25: 		<copy todir="${build_dir}" file="${src_dir}/${readmetxt_file}" />
   26: 	</target>
   27: 
   28: 	<target name="copy_src" depends="init">
   29: 		<copy todir="${temp_dir}/${chrome_dir}/${content_dir}/${russkey_dir}">
   30: 			<fileset dir="${src_dir}/${chrome_dir}/${content_dir}/${russkey_dir}/" />
   31: 		</copy>
   32: 		<copy todir="${temp_dir}/${chrome_dir}/${locale_dir}/${russkey_dir}/${en_us_dir}">
   33: 			<fileset dir="${src_dir}/${chrome_dir}/${locale_dir}/${russkey_dir}/${en_us_dir}/" />
   34: 		</copy>
   35: 		<copy todir="${temp_dir}/${chrome_dir}/${skin_dir}/${classic_dir}/${russkey_dir}">
   36: 			<fileset dir="${src_dir}/${chrome_dir}/${skin_dir}/${classic_dir}/${russkey_dir}/" />
   37: 		</copy>
   38: 		<copy todir="${build_dir}" file="${src_dir}/${readmetxt_file}" />
   39: 		<copy todir="${build_dir}/${defaults_dir}/${preferences_dir}">
   40: 			<fileset dir="${src_dir}/${defaults_dir}/${preferences_dir}/" />
   41: 		</copy>
   42: 	</target>
   43: 
   44: 	<target name="update_version" depends="copy_src,copy_installers">
   45: 		<replace file="${temp_dir}/${chrome_dir}/${content_dir}/${russkey_dir}/about.xul"
   46: 		value="value not found in version.properties" propertyFile="version.properties">
   47: 			<replacefilter token="@buildNum@" property="buildNum"/>
   48: 		</replace>
   49: 		<replace file="${build_dir}/install.rdf"
   50: 		value="value not found in version.properties" propertyFile="version.properties">
   51: 			<replacefilter token="@buildNum@" property="buildNum"/>
   52: 		</replace>
   53: 
   54: 		<copy file="${www_dir}/russkeyupdate-template.rdf" tofile="${www_dir}/russkeyupdate.rdf" overwrite="true" />
   55: 		<replace file="${www_dir}/russkeyupdate.rdf"
   56: 		value="value not found in version.properties" propertyFile="version.properties">
   57: 			<replacefilter token="@buildNum@" property="buildNum"/>
   58: 		</replace>
   59: 	</target>
   60: 
   61: 	<target name="chromejar" depends="update_version">
   62: 		<!-- make a jar file -->
   63: 		<jar jarfile="${build_dir}/${chrome_dir}/${chrome_jarname}" basedir="${temp_dir}/${chrome_dir}/"/>
   64: 	</target>
   65: 
   66: 
   67: 
   68: 	<target name="build" depends="init,chromejar,copy_installers">
   69: 		<!-- make -->
   70: 		<jar jarfile="${downloads_dir}/${russkey_xpiname}" basedir="${build_dir}/"/>
   71: 	</target>
   72: 
   73: 	<target name="update" depends="init,chromejar">
   74: 		<copy file="${build_dir}/${chrome_dir}/${chrome_jarname}" tofile="${extension_dir}/${chrome_jarname}"/>
   75: 	</target>
   76: 
   77: </project>

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