Commit 6b9233fb authored by Tor Didriksen's avatar Tor Didriksen

Bug#16395606 SCRIPTS MISSING EXECUTE BIT

Add execute bit for scripts:
 - in build directory
 - in install directory
parent 348d14c7
# Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved. # Copyright (c) 2006, 2013, Oracle and/or its affiliates. All rights reserved.
# #
# This program is free software; you can redistribute it and/or modify # This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by # it under the terms of the GNU General Public License as published by
...@@ -52,12 +52,20 @@ FOREACH(file ${all_files}) ...@@ -52,12 +52,20 @@ FOREACH(file ${all_files})
ENDIF() ENDIF()
SET(target "${CMAKE_CURRENT_BINARY_DIR}/${target}") SET(target "${CMAKE_CURRENT_BINARY_DIR}/${target}")
CONFIGURE_FILE(${file} ${target} COPYONLY) CONFIGURE_FILE(${file} ${target} COPYONLY)
IF (UNIX AND NOT ${name} MATCHES "README")
EXECUTE_PROCESS(COMMAND chmod +x ${target})
ENDIF()
IF (ext MATCHES ".bat") IF (ext MATCHES ".bat")
IF(WIN32) IF(WIN32)
INSTALL(FILES ${target} DESTINATION ${prefix}sql-bench COMPONENT SqlBench) INSTALL(PROGRAMS ${target}
DESTINATION ${prefix}sql-bench COMPONENT SqlBench)
ENDIF() ENDIF()
ELSEIF(name MATCHES "README")
INSTALL(FILES ${target}
DESTINATION ${prefix}sql-bench COMPONENT SqlBench)
ELSE() ELSE()
INSTALL(FILES ${target} DESTINATION ${prefix}sql-bench COMPONENT SqlBench) INSTALL(PROGRAMS ${target}
DESTINATION ${prefix}sql-bench COMPONENT SqlBench)
ENDIF() ENDIF()
ENDIF() ENDIF()
ENDFOREACH() ENDFOREACH()
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment