From 3933982f3ce562e7391e983970aecaf5e2f5948e Mon Sep 17 00:00:00 2001 From: Ben Thompson Date: Fri, 15 Jul 2016 10:43:56 -0500 Subject: [PATCH] make installed scripts executable --- oam/cloud/CMakeLists.txt | 2 +- oam/install_scripts/CMakeLists.txt | 2 +- tools/setConfig/CMakeLists.txt | 2 +- utils/loggingcpp/genMsgAndErrId.sh | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/oam/cloud/CMakeLists.txt b/oam/cloud/CMakeLists.txt index fe8c5a1a2..1e99fc87d 100644 --- a/oam/cloud/CMakeLists.txt +++ b/oam/cloud/CMakeLists.txt @@ -1,2 +1,2 @@ -install(FILES IDBInstanceCmds.sh IDBVolumeCmds.sh DESTINATION ${ENGINE_BINDIR}) +install(PROGRAMS IDBInstanceCmds.sh IDBVolumeCmds.sh DESTINATION ${ENGINE_BINDIR}) diff --git a/oam/install_scripts/CMakeLists.txt b/oam/install_scripts/CMakeLists.txt index 1c27b8f1c..7959eb86b 100644 --- a/oam/install_scripts/CMakeLists.txt +++ b/oam/install_scripts/CMakeLists.txt @@ -1,5 +1,5 @@ -install(FILES post-install +install(PROGRAMS post-install pre-uninstall remote_command.sh columnstoreLogRotate diff --git a/tools/setConfig/CMakeLists.txt b/tools/setConfig/CMakeLists.txt index 6983b3fd1..553edeafb 100644 --- a/tools/setConfig/CMakeLists.txt +++ b/tools/setConfig/CMakeLists.txt @@ -12,5 +12,5 @@ target_link_libraries(setConfig ${ENGINE_LDFLAGS} ${ENGINE_EXEC_LIBS}) install(TARGETS setConfig DESTINATION ${ENGINE_BINDIR}) -install(FILES configxml.sh DESTINATION ${ENGINE_BINDIR}) +install(PROGRAMS configxml.sh DESTINATION ${ENGINE_BINDIR}) diff --git a/utils/loggingcpp/genMsgAndErrId.sh b/utils/loggingcpp/genMsgAndErrId.sh index 877ba222b..64e113ac8 100755 --- a/utils/loggingcpp/genMsgAndErrId.sh +++ b/utils/loggingcpp/genMsgAndErrId.sh @@ -1,8 +1,8 @@ #!/bin/sh ./genMsgId.pl > messageids-temp.h -diff -abBq messageids-temp.h messageids.h >/dev/null 2>&1; if [ $? -ne 0 ]; then mv -f messageids-temp.h messageids.h; else touch messageids.h; fi; +diff -abBq messageids-temp.h messageids.h >/dev/null 2>&1; if [ $? -ne 0 ]; then mv -f messageids-temp.h messageids.h; else touch -a messageids.h; fi; rm -f messageids-temp.h ./genErrId.pl > errorids-temp.h -diff -abBq errorids-temp.h errorids.h >/dev/null 2>&1; if [ $? -ne 0 ]; then mv -f errorids-temp.h errorids.h; else touch errorids.h; fi; +diff -abBq errorids-temp.h errorids.h >/dev/null 2>&1; if [ $? -ne 0 ]; then mv -f errorids-temp.h errorids.h; else touch -a errorids.h; fi; rm -f errorids-temp.h