From 7df44ca2302bf8f994edfe2f6872bb4b18b5bae5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Fri, 7 Jan 2022 03:09:04 +0100 Subject: DEB kile: Add rule to install translated documentation into language packages. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko (cherry picked from commit c608909c6dd0cd41ed278985195457f32f73f095) --- debian/_base/applications/office/kile/debian/rules | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'debian/_base') diff --git a/debian/_base/applications/office/kile/debian/rules b/debian/_base/applications/office/kile/debian/rules index 3a717eab1..59bca7cd4 100755 --- a/debian/_base/applications/office/kile/debian/rules +++ b/debian/_base/applications/office/kile/debian/rules @@ -24,6 +24,12 @@ common-install-indep:: cp -a $(CURDIR)/debian/tmp/opt/trinity/share/locale/$$language \ $(CURDIR)/debian/kile-trinity-i18n-$$pkg_lang/opt/trinity/share/locale/$$language; \ done + -for language in `cd debian/tmp/opt/trinity/share/doc/tde/HTML; ls -1d */ | grep -v '^en/'`; do \ + pkg_lang=$$(echo $$language | tr '[:upper:]' '[:lower:]' | sed -e s/@latn/latin/ -e s/[@_]//g); \ + install -d $(CURDIR)/debian/kile-trinity-i18n-$$pkg_lang/opt/trinity/share/doc/tde/HTML; \ + cp -a $(CURDIR)/debian/tmp/opt/trinity/share/doc/tde/HTML/$$language \ + $(CURDIR)/debian/kile-trinity-i18n-$$pkg_lang/opt/trinity/share/doc/tde/HTML/$$language; \ + done install/kile-trinity:: # Install pixmap -- cgit v1.2.1