[Pkg-mozext-commits] [compactheader] 07/441: Automate creation of xpi file including version.
David Prévot
taffit at moszumanska.debian.org
Wed Mar 18 12:28:38 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository compactheader.
commit 29dd9b73cdf049be7c22feb57f5215c070756acb
Author: joachim.herb <none at none>
Date: Fri Aug 7 21:47:56 2009 +0000
Automate creation of xpi file including version.
---
build.xml | 22 ++++++++++++++--------
1 file changed, 14 insertions(+), 8 deletions(-)
diff --git a/build.xml b/build.xml
index cc88b44..494da40 100644
--- a/build.xml
+++ b/build.xml
@@ -2,18 +2,22 @@
<project name="getpartialmessages" default="dist">
<property name="src.dir" value="." />
- <property name="dist.dir" value="dist" />
- <property name="app.name" value="CompactHeader" />
- <property name="app.id" value="${app.name}" /> <!-- extension id like: xxx at xxx.com -->
- <property name="ff.dir" value="C:\Users\joachim\comm-central\objdir-tb-release\mozilla\dist\bin" />
+ <property name="dist.dir" value="../downloads/" />
+
+ <xmlproperty file="./install.rdf" prefix="myFileContent"/>
+ <property name="app.version" value="${myFileContent.RDF.RDF:Description.em:version}"/>
+ <property name="app.name" value="${myFileContent.RDF.RDF:Description.em:name}" />
+ <property name="app.id" value="${myFileContent.RDF.RDF:Description.em:id}" />
+ <!--
+ <property name="ff.dir" value="C:\Users\joachim\comm-central\objdir-tb-release\mozilla\dist\bin" />
<condition property="ff.present">
<and>
<isset property="ff.dir" />
<available file="${ff.dir}" type="dir" />
</and>
</condition>
-
+ -->
<!-- copy to extensions directory -->
<!--
<target name="test.ext" depends="chrome" if="ff.present">
@@ -23,7 +27,7 @@
-->
<target name="dist">
- <zip destfile="${dist.dir}/${app.name}.xpi">
+ <zip destfile="${dist.dir}/${app.name}-${app.version}.xpi">
<fileset dir="${src.dir}">
<include name="chrome.manifest" />
<include name="install.rdf" />
@@ -36,13 +40,15 @@
</target>
<target name="clean">
- <delete dir="${dist.dir}" />
+ <delete file="${dist.dir}/${app.name}-${app.version}.xpi" />
</target>
-
+
+ <!--
<target name="clean.ff" if="ff.present">
<delete dir="${ff.dir}/extensions/${app.id}" failonerror="false" />
<delete file="${ff.dir}/chrome/${app.name}.manifest" failonerror="false" />
<delete file="${ff.dir}/chrome/chrome/${app.name}.jar" failonerror="false" />
</target>
+ -->
</project>
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/compactheader.git
More information about the Pkg-mozext-commits
mailing list