From a7f2cdc09b48489125d8f2e6428b3464c32ac85d Mon Sep 17 00:00:00 2001 From: asv Date: Tue, 27 Jun 2006 07:49:40 +0000 Subject: [PATCH] Fix to bug PAL10465. Modification of resource files location in "build" and "installation" directories. Now resource files are placed in share/salome/resources/. Various configuration files (configure.in.base, make_module/conclude/commence, etc.) are changed. --- Makefile.in | 10 +++++----- adm_local/unix/make_commence.in | 2 ++ configure.in.base | 6 +++++- resources/SalomeApp.xml | 14 +++++++------- 4 files changed, 19 insertions(+), 13 deletions(-) diff --git a/Makefile.in b/Makefile.in index 4331fa8b..ac80cb95 100644 --- a/Makefile.in +++ b/Makefile.in @@ -81,9 +81,9 @@ depend: depend_idl depend_idl: (cd idl ; $(MAKE) $@) || exit 1 -resources: share/salome/resources/VISUCatalog.xml +resources: share/salome/resources/visu/VISUCatalog.xml -share/salome/resources/VISUCatalog.xml: VISUCatalog.xml +share/salome/resources/visu/VISUCatalog.xml: VISUCatalog.xml cp $< $@ # doc is already build : if you want to had documents, go manually to doc and run 'make doc' @@ -128,6 +128,6 @@ install: install-bin install-include install-end install-resources: install-catalog -install-catalog: share/salome/resources/VISUCatalog.xml - $(INSTALL) -d $(datadir)/resources - $(INSTALL_DATA) $< $(datadir)/resources/. +install-catalog: share/salome/resources/visu/VISUCatalog.xml + $(INSTALL) -d $(datadir)/resources/visu + $(INSTALL_DATA) $< $(datadir)/resources/visu/. diff --git a/adm_local/unix/make_commence.in b/adm_local/unix/make_commence.in index ed0e9c45..bba7766f 100644 --- a/adm_local/unix/make_commence.in +++ b/adm_local/unix/make_commence.in @@ -1,6 +1,8 @@ # common directories to put headerfiles inc_builddir=$(top_builddir)/include/salome +MODULE_NAME=@MODULE_NAME@ + @SET_MAKE@ SHELL=/bin/sh diff --git a/configure.in.base b/configure.in.base index a0717524..0c57ce69 100644 --- a/configure.in.base +++ b/configure.in.base @@ -27,6 +27,10 @@ XVERSION=0x030200 AC_SUBST(VERSION) AC_SUBST(XVERSION) +# set up MODULE_NAME variable for dynamic construction of directories (resources, etc.) +MODULE_NAME=visu +AC_SUBST(MODULE_NAME) + dnl dnl Initialize source and build root directories dnl @@ -343,7 +347,7 @@ else fi # make other build directories -for rep in salome_adm adm_local doc bin/salome include/salome lib${LIB_LOCATION_SUFFIX}/salome share/salome/resources idl +for rep in salome_adm adm_local doc bin/salome include/salome lib${LIB_LOCATION_SUFFIX}/salome share/salome/resources/${MODULE_NAME} idl do # if test ! -d $rep ; then # eval mkdir $rep diff --git a/resources/SalomeApp.xml b/resources/SalomeApp.xml index 8fa38a99..5488527c 100644 --- a/resources/SalomeApp.xml +++ b/resources/SalomeApp.xml @@ -59,8 +59,8 @@ - - + + @@ -72,8 +72,8 @@ - - + + @@ -83,8 +83,8 @@ - - + + @@ -112,6 +112,6 @@
- +
-- 2.39.2