summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOBATA Akio <obache@wizdas.com>2019-01-13 18:09:58 +0900
committerSlávek Banko <slavek.banko@axis.cz>2019-01-13 12:49:17 +0100
commit633fbfffae0739dbcfd9b00193a27fde8bfbabe9 (patch)
tree9bd8d42f99466c6144000b48290e61e152e60dc7
parentf65e14ec89687f08c257673a873de598b4fb2730 (diff)
downloadtqtinterface-633fbfffae0739dbcfd9b00193a27fde8bfbabe9.tar.gz
tqtinterface-633fbfffae0739dbcfd9b00193a27fde8bfbabe9.zip
Prevent to use GNU sed extension feature
It is GNU sed extension feature to use "\n" in insert string, so it should be replaced with portable way. This resolves bug 2986. Signed-off-by: OBATA Akio <obache@wizdas.com> (cherry picked from commit eee820646dd61ff8c18aba1d97afd798c96b7116)
-rwxr-xr-xqtinterface/tmoc.cmake5
1 files changed, 4 insertions, 1 deletions
diff --git a/qtinterface/tmoc.cmake b/qtinterface/tmoc.cmake
index 087fbdb..5321484 100755
--- a/qtinterface/tmoc.cmake
+++ b/qtinterface/tmoc.cmake
@@ -12,7 +12,10 @@ if [ -f @BIN_INSTALL_DIR@/tqt-replace-stream ]; then
out_file="$3"
@BIN_INSTALL_DIR@/tqt-replace-stream "${input_file}" | \
@MOC_EXECUTABLE@ | \
- sed "/#include <qmetaobject.h>/ i #undef QT_NO_COMPAT\n#include \"${input_file}\"" \
+ sed "/#include <qmetaobject.h>/ i\\
+#undef QT_NO_COMPAT\\
+#include \"${input_file}\"\\
+" \
> "${out_file}"
fi
else