From 4b7d5bcf9a38cbbf1fa66a0e60ff4b92d4aeb836 Mon Sep 17 00:00:00 2001 From: vsr Date: Mon, 13 Apr 2009 13:54:59 +0000 Subject: [PATCH] 0020303: Install some .py in the correct way - integrate patch from E.Adam : additional fix of permissions problem --- bin/Makefile.am | 4 ++++ src/Batch_SWIG/Makefile.am | 5 +++++ src/Container/Makefile.am | 5 +++++ src/LifeCycleCORBA_SWIG/Test/Makefile.am | 5 +++++ src/ModuleGenerator/Makefile.am | 5 +++++ 5 files changed, 24 insertions(+) diff --git a/bin/Makefile.am b/bin/Makefile.am index d27e5379b..000aeda4b 100644 --- a/bin/Makefile.am +++ b/bin/Makefile.am @@ -98,3 +98,7 @@ uninstall-local: rm -rf $(DESTDIR)$(salomescriptdir)/appliskel; \ fi; +install-data-hook: + @for f in $(dist_salomescript_PYTHON) ; do \ + chmod -f a+x $(DESTDIR)$(salomescriptdir)/$$f ; \ + done diff --git a/src/Batch_SWIG/Makefile.am b/src/Batch_SWIG/Makefile.am index 5cb81ec2c..2d18ed2e0 100644 --- a/src/Batch_SWIG/Makefile.am +++ b/src/Batch_SWIG/Makefile.am @@ -84,3 +84,8 @@ dist_salomescript_PYTHON = Batch_test.py # You don't need to specify libBatch_Swig.py. It is automatically # installed by means of the swig target salomepython_PYTHON. + +install-data-hook: + @for f in $(dist_salomescript_PYTHON) ; do \ + chmod -f a+x $(DESTDIR)$(salomescriptdir)/$$f ; \ + done diff --git a/src/Container/Makefile.am b/src/Container/Makefile.am index cf28c9b0f..4ba5af6cb 100644 --- a/src/Container/Makefile.am +++ b/src/Container/Makefile.am @@ -162,3 +162,8 @@ TestSalome_file_LDADD =\ $(MPI_LIBS) \ $(CORBA_LIBS) \ $(PYTHON_LIBS) + +install-data-hook: + @for f in $(dist_salomescript_PYTHON) ; do \ + chmod -f a+x $(DESTDIR)$(salomescriptdir)/$$f ; \ + done diff --git a/src/LifeCycleCORBA_SWIG/Test/Makefile.am b/src/LifeCycleCORBA_SWIG/Test/Makefile.am index 4618b5a2a..cd322e39d 100644 --- a/src/LifeCycleCORBA_SWIG/Test/Makefile.am +++ b/src/LifeCycleCORBA_SWIG/Test/Makefile.am @@ -67,3 +67,8 @@ lib_LTLIBRARIES = # =============================================================== # bin_PROGRAMS = + +install-data-hook: + @for f in $(dist_salomescript_PYTHON) ; do \ + chmod -f a+x $(DESTDIR)$(salomescriptdir)/$$f ; \ + done diff --git a/src/ModuleGenerator/Makefile.am b/src/ModuleGenerator/Makefile.am index d54d421a6..2f74b5ba1 100644 --- a/src/ModuleGenerator/Makefile.am +++ b/src/ModuleGenerator/Makefile.am @@ -29,3 +29,8 @@ include $(top_srcdir)/salome_adm/unix/make_common_starter.am dist_salomescript_PYTHON = IDLparser.py EXTRA_DIST = tests + +install-data-hook: + @for f in $(dist_salomescript_PYTHON) ; do \ + chmod -f a+x $(DESTDIR)$(salomescriptdir)/$$f ; \ + done -- 2.39.2