[Pkg-osm-commits] [SCM] josm-plugins branch, master, updated. debian/0.0.svn25935-1-15-g6d31e36
Giovanni Mascellani
gio at debian.org
Sat Sep 10 10:45:13 UTC 2011
The following commit has been merged in the master branch:
commit 800fe2c935b30d3253bae9a8816e4fbab643ffb3
Author: Giovanni Mascellani <gio at 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
More information about the Pkg-osm-commits
mailing list