readlicense_oo/Package_files.mk | 9 +++++++-- sfx2/source/appl/appserv.cxx | 5 +++++ 2 files changed, 12 insertions(+), 2 deletions(-)
New commits: commit bb65cdafedd1e461d43a90cda018e7fe3a1b9663 Author: Andras Timar <andras.ti...@collabora.com> Date: Thu Jun 18 16:24:28 2015 +0200 Make 'Show License' button work on OS X Change-Id: I947033790476f982efd6a275831d2439b2859d8f (cherry picked from commit ed4fe167a9705e714970ab5725aaae8854b1125b) diff --git a/sfx2/source/appl/appserv.cxx b/sfx2/source/appl/appserv.cxx index 40c8014..7ff0da2 100644 --- a/sfx2/source/appl/appserv.cxx +++ b/sfx2/source/appl/appserv.cxx @@ -201,8 +201,13 @@ static bool checkURL( const char *pName, const char *pExt, OUString &rURL ) using namespace osl; DirectoryItem aDirItem; +#ifdef MACOSX + rURL = "$BRAND_BASE_DIR/Resources/" + OUString::createFromAscii( pName ) + + OUString::createFromAscii( pExt ); +#else rURL = "$BRAND_BASE_DIR/" + OUString::createFromAscii( pName ) + OUString::createFromAscii( pExt ); +#endif rtl::Bootstrap::expandMacros( rURL ); if (!rURL.isEmpty()) commit 7fdf8c36f6ae032af3f76a15ebb815e110d94694 Author: Andras Timar <andras.ti...@collabora.com> Date: Thu Jun 18 15:43:15 2015 +0200 Put LICENSE/NOTICE files to Resources on OSX in instdir case, too Change-Id: I59444cf36d829f8f726c9301ee8393d5ca16196c (cherry picked from commit df1fa04b0d1341e7cb87ef16e2ec2c6447835cc5) diff --git a/readlicense_oo/Package_files.mk b/readlicense_oo/Package_files.mk index e84681f..1f06bdd 100644 --- a/readlicense_oo/Package_files.mk +++ b/readlicense_oo/Package_files.mk @@ -15,11 +15,16 @@ ifneq ($(OS),WNT) $(eval $(call gb_Package_add_file,readlicense_oo_files,LICENSE,LICENSE)) endif +ifneq ($(OS),MACOSX) $(eval $(call gb_Package_add_file,readlicense_oo_files,NOTICE,NOTICE)) - $(eval $(call gb_Package_add_file,readlicense_oo_files,LICENSE.fodt,LICENSE.fodt)) $(eval $(call gb_Package_add_file,readlicense_oo_files,CREDITS.fodt,CREDITS.fodt)) - $(eval $(call gb_Package_add_file,readlicense_oo_files,LICENSE.html,LICENSE.html)) +else +$(eval $(call gb_Package_add_file,readlicense_oo_files,Resources/NOTICE,NOTICE)) +$(eval $(call gb_Package_add_file,readlicense_oo_files,Resources/LICENSE.fodt,LICENSE.fodt)) +$(eval $(call gb_Package_add_file,readlicense_oo_files,Resources/CREDITS.fodt,CREDITS.fodt)) +$(eval $(call gb_Package_add_file,readlicense_oo_files,Resources/LICENSE.html,LICENSE.html)) +endif # vim: set noet sw=4 ts=4: _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits