~mozillateam/thunderbird/thunderbird.disco

« back to all changes in this revision

Viewing changes to debian/build/rules.mk

  • Committer: Olivier Tilloy
  • Date: 2019-08-10 07:52:50 UTC
  • Revision ID: olivier.tilloy@canonical.com-20190810075250-71zxueb78ie096bj
* Do not exclude calendar translations from the source tarball, and repack the lightning xpi with all available locales (LP: #545778)
  - update debian/config/tarball.conf
  - update debian/build/rules.mk
  - update debian/rules

Show diffs side-by-side

added added

removed removed

Lines of Context:
170
170
MOZ_EXECUTABLES_$(MOZ_PKG_NAME) +=      $(MOZ_LIBDIR)/$(MOZ_PKG_BASENAME).sh \
171
171
                                        $(NULL)
172
172
 
 
173
MOZ_LIGHTNING_EXTID := \{e2fda1a4-762b-4020-b5ad-a41df1933103\}
 
174
 
173
175
pkgname_subst_files = \
174
176
        debian/config/mozconfig \
175
177
        $(MOZ_PKGNAME_SUBST_FILES) \
220
222
        @echo ""
221
223
        @echo "* Building language pack xpi for $*"
222
224
        @echo ""
223
 
 
224
225
        export PATH=$(VIRTENV_PATH)/bin/:$$PATH ; \
225
226
        export REAL_LOCALE_MERGEDIR=$(CURDIR)/debian/l10n-mergedirs/$* ; \
226
227
        cd $(MOZ_OBJDIR)/$(MOZ_APP)/locales ; \
227
228
                $(MAKE) langpack-$* BASE_MERGE=$(CURDIR)/debian/l10n-mergedirs REAL_LOCALE_MERGEDIR=$(CURDIR)/debian/l10n-mergedirs/$* || exit 1;
228
229
        @touch $@
229
230
 
 
231
debian/stamp-repack-lightning-xpi-with-all-locales:
 
232
        @echo ""
 
233
        @echo ""
 
234
        @echo "* Repacking the lightning xpi with all available locales"
 
235
        @echo ""
 
236
        mkdir -p $(CURDIR)/debian/lightning
 
237
        rm -rf $(CURDIR)/debian/lightning/*
 
238
        unzip -d $(CURDIR)/debian/lightning $(MOZ_DISTDIR)/bin/distribution/extensions/lightning-*.xpi
 
239
        $(foreach locale, $(MOZ_LOCALES), \
 
240
                cp -rL $(MOZ_DISTDIR)/xpi-stage/locale-$(locale)/distribution/extensions/$(MOZ_LIGHTNING_EXTID)/chrome/{calendar,lightning}-$(locale) $(CURDIR)/debian/lightning/chrome/; \
 
241
                cat $(MOZ_DISTDIR)/xpi-stage/locale-$(locale)/distribution/extensions/$(MOZ_LIGHTNING_EXTID)/chrome.manifest >> $(CURDIR)/debian/lightning/chrome.manifest; )
 
242
        cd $(CURDIR)/debian/lightning; \
 
243
        zip -9r $(MOZ_LIGHTNING_EXTID).xpi *;
 
244
        @touch $@
 
245
clean::
 
246
        rm -rf debian/lightning
 
247
        rm -f debian/stamp-repack-lightning-xpi-with-all-locales
 
248
 
230
249
common-configure-arch common-configure-indep:: common-configure-impl
231
250
common-configure-impl:: debian/stamp-mach-configure
232
251
debian/stamp-mach-configure:
236
255
        rm -f debian/stamp-mach-configure
237
256
 
238
257
common-build-arch:: make-langpack-xpis
 
258
common-build-arch:: debian/stamp-repack-lightning-xpi-with-all-locales
239
259
 
240
260
install/$(MOZ_PKG_NAME)::
241
261
        @echo "Adding suggests / recommends on support packages"