From 2d4a26ade9d23be047d4f7edcb8adb553045d331 Mon Sep 17 00:00:00 2001 From: David Sansome Date: Sat, 24 Jul 2010 23:55:51 +0000 Subject: [PATCH] Set the permissions right on the debian rules file --- debian/CMakeLists.txt | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/debian/CMakeLists.txt b/debian/CMakeLists.txt index f02fa8c04..2ae2226ac 100644 --- a/debian/CMakeLists.txt +++ b/debian/CMakeLists.txt @@ -1,3 +1,5 @@ +cmake_minimum_required(VERSION 2.8) + execute_process(COMMAND date "+%a, %-d %b %Y %H:%M:%S %z" OUTPUT_VARIABLE DEB_DATE OUTPUT_STRIP_TRAILING_WHITESPACE) @@ -5,5 +7,10 @@ set(DEB_DIST "unstable" CACHE STRING "Distribution to set in the .deb changelog" configure_file(${CMAKE_CURRENT_SOURCE_DIR}/changelog.in ${CMAKE_CURRENT_SOURCE_DIR}/changelog) + configure_file(${CMAKE_CURRENT_SOURCE_DIR}/rules.in - ${CMAKE_CURRENT_SOURCE_DIR}/rules @ONLY) + ${CMAKE_CURRENT_BINARY_DIR}/rules @ONLY) +file(COPY ${CMAKE_CURRENT_BINARY_DIR}/rules + DESTINATION ${CMAKE_CURRENT_SOURCE_DIR}/ + FILE_PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ + GROUP_EXECUTE GROUP_READ)