summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2022-01-07 03:09:04 +0100
committerSlávek Banko <slavek.banko@axis.cz>2022-01-07 03:09:04 +0100
commitc608909c6dd0cd41ed278985195457f32f73f095 (patch)
tree81acb5c99fe100c5c72d492575e138a3120be105
parent22ffe24ee57ad0441dd150f7aa56dd94ef140c80 (diff)
downloadtde-packaging-c608909c6dd0cd41ed278985195457f32f73f095.tar.gz
tde-packaging-c608909c6dd0cd41ed278985195457f32f73f095.zip
DEB kile: Add rule to install translated documentation into language packages.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
-rwxr-xr-xdebian/_base/applications/office/kile/debian/rules6
-rwxr-xr-xubuntu/_base/applications/office/kile/debian/rules6
2 files changed, 12 insertions, 0 deletions
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
diff --git a/ubuntu/_base/applications/office/kile/debian/rules b/ubuntu/_base/applications/office/kile/debian/rules
index 3a717eab1..59bca7cd4 100755
--- a/ubuntu/_base/applications/office/kile/debian/rules
+++ b/ubuntu/_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