From c33dd10a8a12ef9972908368f33c131967c9d384 Mon Sep 17 00:00:00 2001 From: "mark%moxienet.com" Date: Wed, 19 Jul 2006 20:09:01 +0000 Subject: [PATCH] 343931 Set app name in InfoPlist.strings during build based on --enable-official-branding. Use proper (UTF-16) encoding for InfoPlist.strings. r=bsmedberg --- browser/app/Makefile.in | 5 +++-- browser/app/macbuild/Contents/Info.plist.in | 8 ++++---- .../Contents/Resources/English.lproj/InfoPlist.strings | 0 .../Contents/Resources/English.lproj/InfoPlist.strings.in | 2 ++ mail/app/Makefile.in | 5 +++-- mail/app/macbuild/Contents/Info.plist.in | 8 ++++---- .../Contents/Resources/English.lproj/InfoPlist.strings | 0 .../Contents/Resources/English.lproj/InfoPlist.strings.in | 2 ++ 8 files changed, 18 insertions(+), 12 deletions(-) delete mode 100644 browser/app/macbuild/Contents/Resources/English.lproj/InfoPlist.strings create mode 100644 browser/app/macbuild/Contents/Resources/English.lproj/InfoPlist.strings.in delete mode 100644 mail/app/macbuild/Contents/Resources/English.lproj/InfoPlist.strings create mode 100644 mail/app/macbuild/Contents/Resources/English.lproj/InfoPlist.strings.in diff --git a/browser/app/Makefile.in b/browser/app/Makefile.in index 40e77343700..c16d57f205b 100644 --- a/browser/app/Makefile.in +++ b/browser/app/Makefile.in @@ -359,8 +359,9 @@ libs repackage:: $(PROGRAM) mkdir -p $(DIST)/$(APP_NAME).app/Contents/MacOS rsync -a --exclude CVS --exclude "*.in" $(srcdir)/macbuild/Contents $(DIST)/$(APP_NAME).app --exclude English.lproj mkdir -p $(DIST)/$(APP_NAME).app/Contents/Resources/$(AB).lproj - rsync -a --exclude CVS $(srcdir)/macbuild/Contents/Resources/English.lproj/ $(DIST)/$(APP_NAME).app/Contents/Resources/$(AB).lproj - sed -e "s/APP_VERSION/$(APP_VERSION)/" -e "s/APP_NAME/$(APP_NAME)/" $(srcdir)/macbuild/Contents/Info.plist.in > $(DIST)/$(APP_NAME).app/Contents/Info.plist + rsync -a --exclude CVS --exclude "*.in" $(srcdir)/macbuild/Contents/Resources/English.lproj/ $(DIST)/$(APP_NAME).app/Contents/Resources/$(AB).lproj + sed -e "s/@APP_VERSION@/$(APP_VERSION)/" -e "s/@APP_NAME@/$(APP_NAME)/" $(srcdir)/macbuild/Contents/Info.plist.in > $(DIST)/$(APP_NAME).app/Contents/Info.plist + sed -e "s/@APP_VERSION@/$(APP_VERSION)/" -e "s/@APP_NAME@/$(APP_NAME)/" $(srcdir)/macbuild/Contents/Resources/English.lproj/InfoPlist.strings.in | iconv -f UTF-8 -t UTF-16 > $(DIST)/$(APP_NAME).app/Contents/Resources/$(AB).lproj/InfoPlist.strings rsync -a $(DIST)/bin/ $(DIST)/$(APP_NAME).app/Contents/MacOS rm -f $(DIST)/$(APP_NAME).app/Contents/MacOS/$(PROGRAM) $(DIST)/$(APP_NAME).app/Contents/MacOS/mangle $(DIST)/$(APP_NAME).app/Contents/MacOS/shlibsign rsync -aL $(PROGRAM) $(DIST)/$(APP_NAME).app/Contents/MacOS diff --git a/browser/app/macbuild/Contents/Info.plist.in b/browser/app/macbuild/Contents/Info.plist.in index 86af0792b2d..104e9eab0b9 100644 --- a/browser/app/macbuild/Contents/Info.plist.in +++ b/browser/app/macbuild/Contents/Info.plist.in @@ -74,7 +74,7 @@ CFBundleExecutable firefox-bin CFBundleGetInfoString - Firefox APP_VERSION, © 1998-2006 Contributors + @APP_NAME@ @APP_VERSION@, © 1998-2006 Contributors CFBundleIconFile firefox CFBundleIdentifier @@ -82,11 +82,11 @@ CFBundleInfoDictionaryVersion 6.0 CFBundleName - APP_NAME + @APP_NAME@ CFBundlePackageType APPL CFBundleShortVersionString - APP_VERSION + @APP_VERSION@ CFBundleSignature MOZB CFBundleURLTypes @@ -137,7 +137,7 @@ CFBundleVersion - APP_VERSION + @APP_VERSION@ NSAppleScriptEnabled diff --git a/browser/app/macbuild/Contents/Resources/English.lproj/InfoPlist.strings b/browser/app/macbuild/Contents/Resources/English.lproj/InfoPlist.strings deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/browser/app/macbuild/Contents/Resources/English.lproj/InfoPlist.strings.in b/browser/app/macbuild/Contents/Resources/English.lproj/InfoPlist.strings.in new file mode 100644 index 00000000000..8d33ecbb4b1 --- /dev/null +++ b/browser/app/macbuild/Contents/Resources/English.lproj/InfoPlist.strings.in @@ -0,0 +1,2 @@ +CFBundleName = "@APP_NAME@"; +NSHumanReadableCopyright = "Copyright © 1998-2006 Contributors"; diff --git a/mail/app/Makefile.in b/mail/app/Makefile.in index 2d0bf2e707e..e00044bdb65 100644 --- a/mail/app/Makefile.in +++ b/mail/app/Makefile.in @@ -308,8 +308,9 @@ libs:: $(PROGRAM) mkdir -p $(DIST)/$(APP_NAME).app/Contents/MacOS rsync -a --exclude CVS --exclude "*.in" $(srcdir)/macbuild/Contents $(DIST)/$(APP_NAME).app --exclude English.lproj mkdir -p $(DIST)/$(APP_NAME).app/Contents/Resources/$(AB).lproj - rsync -a --exclude CVS $(srcdir)/macbuild/Contents/Resources/English.lproj/ $(DIST)/$(APP_NAME).app/Contents/Resources/$(AB).lproj - sed -e "s/APP_VERSION/$(APP_VERSION)/" $(srcdir)/macbuild/Contents/Info.plist.in > $(DIST)/$(APP_NAME).app/Contents/Info.plist + rsync -a --exclude CVS --exclude "*.in" $(srcdir)/macbuild/Contents/Resources/English.lproj/ $(DIST)/$(APP_NAME).app/Contents/Resources/$(AB).lproj + sed -e "s/@APP_VERSION@/$(APP_VERSION)/" -e "s/@APP_NAME@/$(APP_NAME)/" $(srcdir)/macbuild/Contents/Info.plist.in > $(DIST)/$(APP_NAME).app/Contents/Info.plist + sed -e "s/@APP_VERSION@/$(APP_VERSION)/" -e "s/@APP_NAME@/$(APP_NAME)/" $(srcdir)/macbuild/Contents/Resources/English.lproj/InfoPlist.strings.in | iconv -f UTF-8 -t UTF-16 > $(DIST)/$(APP_NAME).app/Contents/Resources/$(AB).lproj/InfoPlist.strings rsync -a $(DIST)/bin/ $(DIST)/$(APP_NAME).app/Contents/MacOS rm -f $(DIST)/$(APP_NAME).app/Contents/MacOS/$(PROGRAM) rsync -aL $(PROGRAM) $(DIST)/$(APP_NAME).app/Contents/MacOS diff --git a/mail/app/macbuild/Contents/Info.plist.in b/mail/app/macbuild/Contents/Info.plist.in index 4821fc03d3a..8bf0e22f90e 100644 --- a/mail/app/macbuild/Contents/Info.plist.in +++ b/mail/app/macbuild/Contents/Info.plist.in @@ -7,7 +7,7 @@ CFBundleExecutable thunderbird-bin CFBundleGetInfoString - Thunderbird APP_VERSION, © 1998-2006 Contributors + @APP_NAME@ @APP_VERSION@, © 1998-2006 Contributors CFBundleIconFile thunderbird CFBundleIdentifier @@ -15,15 +15,15 @@ CFBundleInfoDictionaryVersion 6.0 CFBundleName - Thunderbird + @APP_NAME@ CFBundlePackageType APPL CFBundleShortVersionString - APP_VERSION + @APP_VERSION@ CFBundleSignature MOZM CFBundleVersion - APP_VERSION + @APP_VERSION@ CFBundleURLTypes diff --git a/mail/app/macbuild/Contents/Resources/English.lproj/InfoPlist.strings b/mail/app/macbuild/Contents/Resources/English.lproj/InfoPlist.strings deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/mail/app/macbuild/Contents/Resources/English.lproj/InfoPlist.strings.in b/mail/app/macbuild/Contents/Resources/English.lproj/InfoPlist.strings.in new file mode 100644 index 00000000000..8d33ecbb4b1 --- /dev/null +++ b/mail/app/macbuild/Contents/Resources/English.lproj/InfoPlist.strings.in @@ -0,0 +1,2 @@ +CFBundleName = "@APP_NAME@"; +NSHumanReadableCopyright = "Copyright © 1998-2006 Contributors";