diff --git a/calendar/sunbird/app/Makefile.in b/calendar/sunbird/app/Makefile.in index aa8184efb3ce..5b448b16952f 100644 --- a/calendar/sunbird/app/Makefile.in +++ b/calendar/sunbird/app/Makefile.in @@ -352,16 +352,14 @@ 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 + 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)/" -e "s/@MAC_CREATOR_CODE@/$(MAC_CREATOR_CODE)/" $(srcdir)/macbuild/Contents/Info.plist.in > $(DIST)/$(APP_NAME).app/Contents/Info.plist -# The application name shown in the upper left is found in the UTF-16 file: +# The application name shown in the upper left is found in the file: # MyApp.app/Contents/Resources/English.lproj/InfoPlist.strings -# We use iconv to do the charset conversion to UTF-8, pipe it through sed for the -# find and replace, and then use iconv once more to convert it back to UTF-16. -# Since all future Macs are Intel-based, we make the file UTF-16LE with a BOM. - iconv -f UTF-16LE -t UTF-8 $(srcdir)/macbuild/Contents/Resources/English.lproj/InfoPlist.strings.in | \ - sed -e "s/@APP_NAME@/$(APP_NAME)/" | \ - iconv -f UTF-8 -t UTF-16LE > $(DIST)/$(APP_NAME).app/Contents/Resources/$(AB).lproj/InfoPlist.strings +# We pipe this file through sed for the find and replace, and then use iconv +# to convert it to UTF-16. + sed -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/calendar/sunbird/app/macbuild/Contents/Resources/English.lproj/InfoPlist.strings.in b/calendar/sunbird/app/macbuild/Contents/Resources/English.lproj/InfoPlist.strings.in index 265cbd64fd18..250c92d9cd2f 100644 Binary files a/calendar/sunbird/app/macbuild/Contents/Resources/English.lproj/InfoPlist.strings.in and b/calendar/sunbird/app/macbuild/Contents/Resources/English.lproj/InfoPlist.strings.in differ