The following commit has been merged in the master branch:
commit 800fe2c935b30d3253bae9a8816e4fbab643ffb3
Author: Giovanni Mascellani <g...@debian.org>
Date:   Sat Sep 10 11:38:34 2011 +0200

    Add support for building translation files in master.xml.

diff --git a/debian/master.xml b/debian/master.xml
index a423eb8..20f1a7b 100644
--- a/debian/master.xml
+++ b/debian/master.xml
@@ -1,19 +1,28 @@
 <project name="master">
 
     <!-- Use an empty dummy directory as josm build dir -->
-    <property name="josm.build.dir"     value="../tmp/josm"/>
+    <property name="josm.build.dir"     location="../tmp/josm"/>
     <property name="josm"               location="/usr/share/josm/josm.jar"/>
-    <property name="plugin.dist.dir"    value="../dist"/>
+    <property name="plugin.dist.dir"    location="../dist"/>
+    <property name="po.build.dir"       location="../build/po"/>
 
     <xmlproperty file="../svn-info.xml" prefix="version" keepRoot="false" 
collapseAttributes="true"/>
 
 
     <target name="init">
-        <mkdir dir="../dist"/> 
-        <mkdir dir="../tmp/josm/lib"/>
+        <mkdir dir="${josm.build.dir}"/> 
+        <mkdir dir="{plugin.dist.dir}"/>
+        <mkdir dir="{po.build.dir}"/>
     </target>
 
     <target name="do_plugin">
+      <!-- The data dir could have been deleted from GIT repository when empty 
-->
+      <mkdir dir="${plugin.name}/data"/>
+
+      <!-- Build the translation files -->
+      <ant dir="../${plugin.name}" antfile="../i18n/build.xml" 
target="plugintrans"/>
+
+      <!-- Build the plugin -->
       <ant dir="../${plugin.name}" antfile="build.xml" target="dist">
        <property name="plugin.jar" 
value="${plugin.dist.dir}/${plugin.name}.jar"/>
       </ant>

-- 
Plugins for JOSM

_______________________________________________
Pkg-osm-commits mailing list
Pkg-osm-commits@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-osm-commits

Reply via email to