[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:12 UTC 2011


The following commit has been merged in the master branch:
commit 082ef360eeff2df08f6933a5b49642cff43661c5
Author: Giovanni Mascellani <gio at debian.org>
Date:   Sat Sep 10 11:06:56 2011 +0200

    Better handling of translation files (don't use precompiled ones).

diff --git a/debian/rules b/debian/rules
index 9d66110..623a2f8 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,6 +4,7 @@ export JAVA_HOME=/usr/lib/jvm/default-java
 export CLASSPATH=/usr/share/josm/josm.jar:/usr/share/java/metadata-extractor.jar
 
 SVNREPO := http://svn.openstreetmap.org/applications/editors/josm/plugins/
+SVNI18NREPO := http://svn.openstreetmap.org/applications/editors/josm/i18n/
 PLUGINS := cadastre-fr colorscheme DirectUpload editgpx lakewalker livegps measurement openvisible routing surveyor
 
 DATE := $(shell date +%Y%m%d)
@@ -40,8 +41,12 @@ get-orig-source:
 	@for plugin in $(PLUGINS); do \
 			echo "Fetching $$plugin plugin"; \
 			svn export -r ${SVNREV} ${SVNREPO}/"$$plugin" ${DESTDIR}/"$$plugin"; \
-	done			
+			echo "Removing precompiled translation files"; \
+			rm -f ${DESTDIR}/"$$plugin"/data/*.lang; \
+	done
 	svn info --xml http://svn.openstreetmap.org/applications/editors/josm/plugins/ > ${DESTDIR}/svn-info.xml
+	@echo Fetching internalization data
+	svn export ${SVNI18NREPO} ${DESTDIR}/i18n
 	@echo Removing jar files
 	find ${DESTDIR} -name "*.jar" -exec rm -v {} \;
 	@echo Building snapshot tarball																	

-- 
Plugins for JOSM



More information about the Pkg-osm-commits mailing list