# HG changeset patch # User rubidium # Date 1173714859 0 # Node ID 9520de80f461147679a7f6a30875d819b3ddd57a # Parent 3348b52bd823679a3f26b748504034d2266ccff1 (svn r9131) -Codechange: move the OSX application bundle resource directories so they comply (better) to Apple's guidelines and to our naming 'scheme' for the lang and data directories. diff -r 3348b52bd823 -r 9520de80f461 Makefile.in --- a/Makefile.in Mon Mar 12 15:40:12 2007 +0000 +++ b/Makefile.in Mon Mar 12 15:54:19 2007 +0000 @@ -133,8 +133,8 @@ # An OSX application bundle needs the data files, lang files and openttd executable in a different location. ifdef OSXAPP -DATA_DIR = $(BUNDLE_DIR)/$(OSXAPP)/Contents/Data -LANG_DIR = $(BUNDLE_DIR)/$(OSXAPP)/Contents/Lang +DATA_DIR = $(BUNDLE_DIR)/$(OSXAPP)/Contents/Resources/data +LANG_DIR = $(BUNDLE_DIR)/$(OSXAPP)/Contents/Resources/lang TTD_DIR = $(BUNDLE_DIR)/$(OSXAPP)/Contents/MacOS else DATA_DIR = $(BUNDLE_DIR)/data diff -r 3348b52bd823 -r 9520de80f461 config.lib --- a/config.lib Mon Mar 12 15:40:12 2007 +0000 +++ b/config.lib Mon Mar 12 15:54:19 2007 +0000 @@ -555,18 +555,18 @@ OSXAPP="OpenTTD.app" # TODO: remove next few lines of code when the search path patch has been applied - if [ -n "$custom_lang_dir" ] && [ "$custom_lang_dir" != "${OSXAPP}/Contents/Lang/" ]; then + if [ -n "$custom_lang_dir" ] && [ "$custom_lang_dir" != "${OSXAPP}/Contents/Resources/lang/" ]; then log 1 "configure: error: --custom-lang-dir and --with-application-bundle are not compatible exit 1 fi - if [ -n "$custom_lang_dir" ] && [ "$second_data_dir" != "${OSXAPP}/Contents/Data/" ]; then + if [ -n "$custom_lang_dir" ] && [ "$second_data_dir" != "${OSXAPP}/Contents/Resources/data/" ]; then log 1 "configure: error: --second-data-dir and --with-application-bundle are not compatible exit 1 fi - custom_lang_dir="${OSXAPP}/Contents/Lang/" - second_data_dir="${OSXAPP}/Contents/Data/" + custom_lang_dir="${OSXAPP}/Contents/Resources/lang/" + second_data_dir="${OSXAPP}/Contents/Resources/data/" # TODO: remove till here else OSXAPP=""