From fe35ac36a952ce460d0e81a3d44c1871f137e36b Mon Sep 17 00:00:00 2001 From: "scott%scott-macgregor.org" Date: Thu, 8 Mar 2007 06:38:27 +0000 Subject: [PATCH] Bug #367562 --> add the ability to package ISP RDF files on a per locale basis by listing locale specific RDF files in a isps.txt file for each locale. These locale specific isp files get exported to bin\isp\AB_CD\ r=l10n sr=bsmedberg --- mail/installer/removed-files.in | 1 + mail/installer/windows/packages-static | 6 +-- mail/locales/Makefile.in | 11 +++++ mail/locales/en-US/isp/isps.txt | 1 + mailnews/base/ispdata/Makefile.in | 2 +- mailnews/base/ispdata/googlemail.rdf | 63 ++++++++++++++++++++++++++ mailnews/base/search/src/Makefile.in | 2 +- 7 files changed, 80 insertions(+), 6 deletions(-) create mode 100644 mail/locales/en-US/isp/isps.txt create mode 100755 mailnews/base/ispdata/googlemail.rdf diff --git a/mail/installer/removed-files.in b/mail/installer/removed-files.in index 26da0caaf745..069e6c75252f 100644 --- a/mail/installer/removed-files.in +++ b/mail/installer/removed-files.in @@ -190,6 +190,7 @@ defaults/isp/en-US/movemail.rdf defaults/isp/en-US/dotmac.rdf defaults/isp/en-US/ defaults/isp/ +isp/gmail.rdf @DLL_PREFIX@zlib@DLL_SUFFIX@ #Remove Talkback files from old location (in case user updates from 1.0.x) diff --git a/mail/installer/windows/packages-static b/mail/installer/windows/packages-static index dc87a9628376..24f48e4e8c98 100644 --- a/mail/installer/windows/packages-static +++ b/mail/installer/windows/packages-static @@ -11,6 +11,7 @@ bin\chrome\mail-locales.manifest bin\dictionaries\* bin\uninstall\helper.exe bin\updater.ini +bin\isp\@AB_CD@\* [xpcom] bin\xpcom.dll @@ -45,7 +46,6 @@ bin\chrome\offline.manifest [newsblog] bin\chrome\newsblog.jar bin\chrome\newsblog.manifest -bin\isp\rss.rdf bin\components\newsblog.js ; Optional Talkback @@ -78,9 +78,7 @@ bin\defaults\profile\localstore.rdf bin\defaults\profile\prefs.js bin\defaults\profile\mimeTypes.rdf -bin\isp\gmail.rdf -bin\isp\SpamAssassin.sfd -bin\isp\SpamPal.sfd +bin\isp\* bin\components\addrbook.xpt bin\components\mime.xpt diff --git a/mail/locales/Makefile.in b/mail/locales/Makefile.in index 020e468c7194..cc59f79b8694 100644 --- a/mail/locales/Makefile.in +++ b/mail/locales/Makefile.in @@ -90,6 +90,16 @@ endif libs:: $(addprefix $(LOCALE_SRCDIR)/,$(README_FILES)) $(INSTALL) $^ $(FINAL_TARGET) +vpath %.rdf $(topsrcdir)/mailnews/base/ispdata + +ISP_FILES = $(shell cat $(LOCALE_SRCDIR)/isp/isps.txt) + +libs:: $(addsuffix .rdf,$(ISP_FILES)) + $(SYSINSTALL) $(IFLAGS1) $^ $(FINAL_TARGET)/isp/$(AB_CD) + +install:: $(addsuffix .rdf,$(ISP_FILES)) + $(SYSINSTALL) $(IFLAGS1) $^ $(DESTDIR)$(mozappdir)/isp/$(AB_CD) + libs-%: @$(MAKE) -C ../../toolkit/locales libs-$* @$(MAKE) -C ../../editor/ui/locales AB_CD=$* XPI_NAME=locale-$* @@ -163,6 +173,7 @@ repackage-zip: $(ZIP_IN) $(STAGEDIST)/defaults/pref/all-l10n.js $(RM) -r $(STAGEDIST)/searchplugins \ $(STAGEDIST)/dictionaries \ + $(STAGEDIST)/isp/en-US \ $(STAGEDIST)/chrome/en-US $(RM) -rf $(DIST)/xpi-stage/locale-$(AB_CD) $(MAKE) libs-$(AB_CD) diff --git a/mail/locales/en-US/isp/isps.txt b/mail/locales/en-US/isp/isps.txt new file mode 100644 index 000000000000..36bc4884b5bb --- /dev/null +++ b/mail/locales/en-US/isp/isps.txt @@ -0,0 +1 @@ +gmail diff --git a/mailnews/base/ispdata/Makefile.in b/mailnews/base/ispdata/Makefile.in index 7b8a9dbfb3f2..0dced82d4056 100644 --- a/mailnews/base/ispdata/Makefile.in +++ b/mailnews/base/ispdata/Makefile.in @@ -44,7 +44,7 @@ include $(DEPTH)/config/autoconf.mk EXPORT_DIR = $(DIST)/bin/isp -EXPORT_RESOURCE_FILES = gmail.rdf \ +EXPORT_RESOURCE_FILES = \ $(NULL) ifdef MOZ_MOVEMAIL diff --git a/mailnews/base/ispdata/googlemail.rdf b/mailnews/base/ispdata/googlemail.rdf new file mode 100755 index 000000000000..bc2117f4e39a --- /dev/null +++ b/mailnews/base/ispdata/googlemail.rdf @@ -0,0 +1,63 @@ + + + + + + + + + + + Google Mail + pop.googlemail.com + pop3 + + + true + false + + + true + true + true + 995 + 3 + + + + + + + smtp.googlemail.com + 587 + 2 + Google Mail + + + true + true + true + + + + + + + + + true + Google Mail + Google Mail + true + true + Google Mail + example@googlemail.com + example + Google Mail Username: + true + + + + diff --git a/mailnews/base/search/src/Makefile.in b/mailnews/base/search/src/Makefile.in index 962fc8e97c2b..dace6c493e03 100644 --- a/mailnews/base/search/src/Makefile.in +++ b/mailnews/base/search/src/Makefile.in @@ -103,4 +103,4 @@ libs:: $(EXPORT_RESOURCE_FILES) $(INSTALL) $^ $(EXPORT_DIR) install:: $(EXPORT_RESOURCE_FILES) - $(SYSINSTALL) $(IFLAGS1) $^ $(DESTDIR)$(mozappdir)/defaults/messenger + $(SYSINSTALL) $(IFLAGS1) $^ $(DESTDIR)$(mozappdir)/isp