Fix: wrong extension of configured files
authorRomain Forlot <romain.forlot@iot.bzh>
Fri, 7 Jul 2017 10:04:20 +0000 (12:04 +0200)
committerRomain Forlot <romain.forlot@iot.bzh>
Fri, 7 Jul 2017 10:04:20 +0000 (12:04 +0200)
Remove the ".in" template extension from filenames which have to be
correctly named.

Change-Id: I8128f5fa64d5fa914a717c18fbba14fc43de4935
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
cmake/cmake.d/02-macros.cmake
gdb/gdb-on-target.ini.in [moved from gdb/gdb-on-target.in with 100% similarity]
ssh/start-on-target.sh.in [moved from ssh/start-on-target.in with 100% similarity]
wgt/install-wgt-on-target.sh.in [moved from wgt/install-wgt-on-target.in with 100% similarity]

index fd0c43b..7444214 100644 (file)
@@ -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)