From e475d27e5f67d0efa61f91d3aa971c23226fc318 Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Fri, 7 Jul 2017 12:04:20 +0200 Subject: [PATCH] Fix: wrong extension of configured files Remove the ".in" template extension from filenames which have to be correctly named. Change-Id: I8128f5fa64d5fa914a717c18fbba14fc43de4935 Signed-off-by: Romain Forlot --- cmake/cmake.d/02-macros.cmake | 1 + gdb/{gdb-on-target.in => gdb-on-target.ini.in} | 0 ssh/{start-on-target.in => start-on-target.sh.in} | 0 wgt/{install-wgt-on-target.in => install-wgt-on-target.sh.in} | 0 4 files changed, 1 insertion(+) rename gdb/{gdb-on-target.in => gdb-on-target.ini.in} (100%) rename ssh/{start-on-target.in => start-on-target.sh.in} (100%) rename wgt/{install-wgt-on-target.in => install-wgt-on-target.sh.in} (100%) diff --git a/cmake/cmake.d/02-macros.cmake b/cmake/cmake.d/02-macros.cmake index fd0c43b..7444214 100644 --- a/cmake/cmake.d/02-macros.cmake +++ b/cmake/cmake.d/02-macros.cmake @@ -42,6 +42,7 @@ macro(configure_files_in_dir dir) foreach(file ${filelist}) get_filename_component(filename ${file} NAME) string(REGEX REPLACE "target" "${RSYNC_TARGET}" destinationfile ${filename}) + string(REGEX REPLACE ".in$" "" destinationfile ${destinationfile}) configure_file(${file} ${CMAKE_CURRENT_BINARY_DIR}/target/${destinationfile}) endforeach() endmacro(configure_files_in_dir) diff --git a/gdb/gdb-on-target.in b/gdb/gdb-on-target.ini.in similarity index 100% rename from gdb/gdb-on-target.in rename to gdb/gdb-on-target.ini.in diff --git a/ssh/start-on-target.in b/ssh/start-on-target.sh.in similarity index 100% rename from ssh/start-on-target.in rename to ssh/start-on-target.sh.in diff --git a/wgt/install-wgt-on-target.in b/wgt/install-wgt-on-target.sh.in similarity index 100% rename from wgt/install-wgt-on-target.in rename to wgt/install-wgt-on-target.sh.in -- 2.16.6