The following commit has been merged in the master branch:
commit 87783ffa1207aaa7da634c67e319a45dd2bd942c
Author: David Paleino <da...@debian.org>
Date:   Tue Nov 13 22:28:27 2012 +0100

    Strip comments from po-files, to save some space in the tarball during 
repackaging.

diff --git a/debian/changelog b/debian/changelog
index 46fbfdc..5756177 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,8 +2,10 @@ josm (0.0.svn5531+dfsg1-2) UNRELEASED; urgency=low
 
   * Added missing copyright information for src/org/jdesktop/* and
     src/gnu/*.
+  * Strip comments from po-files, to save some space in the tarball
+    during repackaging.
 
- -- David Paleino <da...@debian.org>  Tue, 30 Oct 2012 19:01:21 +0100
+ -- David Paleino <da...@debian.org>  Tue, 13 Nov 2012 22:27:54 +0100
 
 josm (0.0.svn5531+dfsg1-1) unstable; urgency=low
 
diff --git a/debian/rules b/debian/rules
index 2e15a61..8666768 100755
--- a/debian/rules
+++ b/debian/rules
@@ -54,7 +54,12 @@ get-orig-source:
        svn export ${SVNI18NREPO} ${DESTDIR}/i18n
        @echo Downloading translations from Launchpad
        bzr export -v ${DESTDIR}/i18n/po/ lp:~openstreetmap/josm/josm_trans/
-       mv ${DESTDIR}/i18n/po/josm/* ${DESTDIR}/i18n/po/
+       @echo Stripping comments from translations to save some space in the 
tarball
+       for i in ${DESTDIR}/i18n/po/josm/*.po; do \
+               grep -v "^#" $$i > ${DESTDIR}/i18n/po/`basename $$i`; \
+       done
+       mv ${DESTDIR}/i18n/po/josm/*.pot ${DESTDIR}/i18n/po/
+       rm -rf ${DESTDIR}/i18n/po/josm/
        @echo Removing jar files
        find ${DESTDIR} -name "*.jar" -exec rm -v {} \;
        @echo Removing images_nodist

-- 
Editor for OpenStreetMap

_______________________________________________
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