Fix bug 437441 - Finalize calendar-timezones.xpi. r=philipp, p=ause

git-svn-id: svn://10.0.0.236/trunk@253953 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
daniel.boelzle%sun.com 2008-08-30 23:01:49 +00:00
parent be5e52c954
commit 08fc003d88
3 changed files with 16 additions and 2 deletions

View File

@ -42,7 +42,7 @@ VPATH = @srcdir@
include $(DEPTH)/config/autoconf.mk
MODULE = calendar
DIRS = libical resources base providers import-export locales timezones
DIRS = libical resources base providers import-export locales
ifdef ENABLE_TESTS
DIRS += test

View File

@ -304,7 +304,8 @@ bin\chrome\icons\default\calendar-alarm-dialog.ico
bin\extensions\calendar-timezones@mozilla.org\install.rdf
bin\extensions\calendar-timezones@mozilla.org\timezones.sqlite
bin\extensions\calendar-timezones@mozilla.org\chrome.manifest
bin\extensions\calendar-timezones@mozilla.org\chrome\*
bin\extensions\calendar-timezones@mozilla.org\chrome\calendar-timezones-@AB_CD@.jar
bin\extensions\calendar-timezones@mozilla.org\chrome\chromelist.txt
bin\extensions\calendar-timezones@mozilla.org\defaults\preferences\preferences.js
; [Default Preferences]

View File

@ -45,6 +45,8 @@ relativesrcdir = calendar/locales
include $(DEPTH)/config/autoconf.mk
DIRS = ../timezones
include $(topsrcdir)/config/config.mk
run_for_effects := $(shell if ! test -d $(DIST); then $(NSINSTALL) -D $(DIST); fi; if ! test -d $(DIST)/branding; then $(NSINSTALL) -D $(DIST)/branding; fi)
@ -123,9 +125,14 @@ endif
$(CYGWIN_WRAPPER) 7z x -ol10n-stage $(WIN32_INSTALLER_IN)
$(RM) -r l10n-stage/localized
$(RM) l10n-stage/setup.exe
$(RM) -r l10n-stage/nonlocalized/extensions/calendar-timezones@mozilla.org/chrome
$(RM) -rf $(DIST)/xpi-stage/locale-$(AB_CD)
$(RM) -rf $(DIST)/xpi-stage/calendar-timezones
$(MAKE) libs-$(AB_CD)
$(MAKE) -C ../timezones libs-$(AB_CD)
mv $(DIST)/xpi-stage/locale-$(AB_CD) l10n-stage/localized
mv $(DIST)/xpi-stage/calendar-timezones/chrome l10n-stage/nonlocalized/extensions/calendar-timezones@mozilla.org
mv $(DIST)/xpi-stage/calendar-timezones/chrome.manifest l10n-stage/nonlocalized/extensions/calendar-timezones@mozilla.org
$(MAKE) -C ../installer/windows CONFIG_DIR=l10ngen l10ngen/setup.exe l10ngen/7zSD.sfx
cp ../installer/windows/l10ngen/setup.exe l10n-stage
$(NSINSTALL) -D l10n-stage/localized/uninstall
@ -160,11 +167,15 @@ repackage-zip: $(ZIP_IN)
$(STAGEDIST)/chrome/calendar-en-US.jar \
$(STAGEDIST)/chrome/calendar-en-US.manifest \
$(STAGEDIST)/defaults/pref/sunbird-l10n.js
$(RM) -rf $(STAGEDIST)/extensions/calendar-timezones@mozilla.org/chrome
$(RM) $(STAGEDIST)/extensions/calendar-timezones@mozilla.org/chrome.manifest
$(RM) -r $(STAGEDIST)/defaults/profile \
$(STAGEDIST)/chrome/en-US \
$(STAGEDIST)/chrome/calendar-en-US
$(RM) -rf $(DIST)/xpi-stage/locale-$(AB_CD)
$(RM) -rf $(DIST)/xpi-stage/calendar-timezones
$(MAKE) libs-$(AB_CD)
$(MAKE) -C ../timezones libs-$(AB_CD)
ifeq (WINNT,$(OS_ARCH))
$(RM) -r $(STAGEDIST)/uninstall
$(NSINSTALL) -D $(STAGEDIST)/uninstall
@ -173,6 +184,8 @@ endif
$(RM) -r $(DIST)/xpi-stage/locale-$(AB_CD)/chrome/$(AB_CD)
cd $(DIST)/xpi-stage/locale-$(AB_CD) && \
tar $(TAR_CREATE_FLAGS) - * | ( cd $(STAGEDIST) && tar -xf - )
cd $(DIST)/xpi-stage/calendar-timezones && \
tar $(TAR_CREATE_FLAGS) - * | ( cd $(STAGEDIST)/extensions/calendar-timezones@mozilla.org && tar -xf - )
ifneq (en,$(AB))
ifneq (,$(filter mac cocoa,$(MOZ_WIDGET_TOOLKIT)))
mv $(_ABS_DIST)/l10n-stage/$(MOZ_PKG_APPNAME)/$(_APPNAME)/Contents/Resources/en.lproj $(_ABS_DIST)/l10n-stage/$(MOZ_PKG_APPNAME)/$(_APPNAME)/Contents/Resources/$(AB).lproj