[SCM] KDE Localization module packaging branch, master, updated. debian/16.04.3-1-5-g9e44a6c

Pino Toscano pino at moszumanska.debian.org
Sat Nov 18 07:47:23 UTC 2017


Gitweb-URL: http://git.debian.org/?p=pkg-kde/kde-sc/kde-l10n.git;a=commitdiff;h=9e44a6c

The following commit has been merged in the master branch:
commit 9e44a6cf242a08479df710d3ad71b10ba0fdbf4e
Author: Pino Toscano <pino at debian.org>
Date:   Sat Nov 18 08:46:51 2017 +0100

    add simple excluded_docs.list system
---
 debian/changelog          | 1 +
 debian/excluded_docs.list | 0
 debian/rules              | 5 +++++
 3 files changed, 6 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 9f8dd9e..a1dbeaa 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,7 @@ kde-l10n (4:16.04.3-2) UNRELEASED; urgency=medium
   * Exclude kfontinst.js file currently being shipped by plasma-desktop-data.
     Thanks to Ralf Treinen for the report (Closes: 864927)
   * Add a listlangs script
+  * Add a simple way to remove documentations as well (excluded_docs.list).
 
  -- Debian Qt/KDE Maintainers <debian-qt-kde at lists.debian.org>  Sat, 18 Nov 2017 08:27:42 +0100
 
diff --git a/debian/excluded_docs.list b/debian/excluded_docs.list
new file mode 100644
index 0000000..e69de29
diff --git a/debian/rules b/debian/rules
index c604e35..82d6a25 100755
--- a/debian/rules
+++ b/debian/rules
@@ -87,9 +87,14 @@ $(L10N_INSTALL): | prepare_install
 	# Installing '$(cur_lang)' to the '$(cur_pkg)' package
 	dh_auto_install -Scmake -D$(cur_lang) -B$(cur_lang_builddir) --destdir=$(CURDIR)/debian/$(cur_pkg)
 	# The new KF5 package have their own translations now, remove files listed in excluded_files.list
+	# and documentations listed in excluded_docs.list (in both kde4 and kf5 locations)
 	sed -e '/^$$/d;/^#/d' $(CURDIR)/debian/excluded_files.list | while read excluded_file; do \
 	    find $(CURDIR)/debian/$(cur_pkg) -name $${excluded_file} -delete ; \
 	done
+	sed -e '/^$$/d;/^#/d' $(CURDIR)/debian/excluded_files.list | while read excluded_doc; do \
+	    rm -rf $(CURDIR)/debian/$(cur_pkg)/usr/share/doc/HTML/$(cur_lang)/$${excluded_doc} ; \
+	    rm -rf $(CURDIR)/debian/$(cur_pkg)/usr/share/doc/kde/HTML/$(cur_lang)/$${excluded_doc} ; \
+	done
 	# Drop *_mimetypes.mo translations, since they are only helper for
 	# translating XML files
 	find $(CURDIR)/debian/$(cur_pkg) -name '*_mimetypes.mo' -delete

-- 
KDE Localization module packaging



More information about the pkg-kde-commits mailing list