From 34b1247c851fd05716a3068cc2ce10aceaea2617 Mon Sep 17 00:00:00 2001
From: Axel Puntke <axel.puntke@uni-muenster.de>
Date: Tue, 7 May 2024 12:07:47 +0000
Subject: [PATCH] Make PWG sh scripts executable

---
 macro/CMakeLists.txt | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/macro/CMakeLists.txt b/macro/CMakeLists.txt
index 639ef40b7f..49edceff2c 100644
--- a/macro/CMakeLists.txt
+++ b/macro/CMakeLists.txt
@@ -39,9 +39,7 @@ Install(FILES ${CBMROOT_SOURCE_DIR}/scripts/loadlib.C
         DESTINATION share/cbmroot/macro/
        )
 
-Install(FILES ${CBMROOT_SOURCE_DIR}/macro/PWG/common/production/run_json.sh
-              ${CBMROOT_SOURCE_DIR}/macro/PWG/common/production/run_sim_reco_json.sh
-              ${CBMROOT_SOURCE_DIR}/macro/PWG/common/production/run_transport_json_config.C
+Install(FILES ${CBMROOT_SOURCE_DIR}/macro/PWG/common/production/run_transport_json_config.C
               ${CBMROOT_SOURCE_DIR}/macro/PWG/common/production/run_digi_json_config.C
               ${CBMROOT_SOURCE_DIR}/macro/PWG/common/production/run_reco_json_config.C
               ${CBMROOT_SOURCE_DIR}/macro/PWG/common/production/run_analysis_tree_maker_json_config.C
@@ -49,6 +47,10 @@ Install(FILES ${CBMROOT_SOURCE_DIR}/macro/PWG/common/production/run_json.sh
               ${CBMROOT_SOURCE_DIR}/macro/PWG/common/production/.rootrc
         DESTINATION share/cbmroot/macro/PWG/common/production
         )
+Install(PROGRAMS ${CBMROOT_SOURCE_DIR}/macro/PWG/common/production/run_json.sh
+                 ${CBMROOT_SOURCE_DIR}/macro/PWG/common/production/run_sim_reco_json.sh
+        DESTINATION share/cbmroot/macro/PWG/common/production
+        )
 Install(CODE "FILE(MAKE_DIRECTORY ${CMAKE_INSTALL_PREFIX}/share/cbmroot/macro/PWG/common/production)")
 
 Install(FILES KF/DecayConfig.C KF/registerGeantDecays.C KF/registerLightIons.C KF/registerPythiaDecays.C
-- 
GitLab