diff options
Diffstat (limited to 'dilos/core/tde-i18n/debian/rules')
-rwxr-xr-x | dilos/core/tde-i18n/debian/rules | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/dilos/core/tde-i18n/debian/rules b/dilos/core/tde-i18n/debian/rules index bba9817f3..1631906ea 100755 --- a/dilos/core/tde-i18n/debian/rules +++ b/dilos/core/tde-i18n/debian/rules @@ -90,6 +90,9 @@ install:: dh_testroot install:: $(I18N_INSTALL) + dh_testdir + cat debian/control-source > debian/control + find debian -name "control-lang-*" | LANG=C sort | xargs -r cat >> debian/control $(I18N_INSTALL): build ifneq "$(wildcard /usr/bin/ninja)" "" @@ -99,6 +102,13 @@ else cd $(cur_lang_dir)/build && \ DESTDIR=$(CURDIR)/debian/$(cur_pkg) $(MAKE) install $(DEB_MAKE_PARALLEL) endif + if [ -e $(cur_lang_dir)/messages/entry.desktop ]; then \ + lang_desc=$$(sed -n "s|^Name=||p" $(cur_lang_dir)/messages/entry.desktop); \ + sed -e "s|@lang@|$(cur_lang)|g" \ + -e "s|@pkg_lang@|$(cur_pkg_lang)|g" \ + -e "s|@lang_desc@|$$lang_desc|" \ + < debian/control-lang > debian/control-lang-$(cur_pkg_lang); \ + fi ifneq "$(wildcard /usr/bin/ninja)" "" @@ -119,6 +129,12 @@ debian-clean: rm -rf build rm -rf debian/$(I18N_DEST_PREFIX)-* rm -f debian/stamp__* + rm -f debian/control-lang-* + cat debian/control-source > debian/control + sed -e "s|@lang@|all|g" \ + -e "s|-@pkg_lang@||g" \ + -e "s|@lang_desc@|All languages|" \ + < debian/control-lang >> debian/control dh_clean |