diff options
author | OBATA Akio <[email protected]> | 2019-01-13 18:09:58 +0900 |
---|---|---|
committer | OBATA Akio <[email protected]> | 2019-01-14 05:24:47 +0900 |
commit | eee820646dd61ff8c18aba1d97afd798c96b7116 (patch) | |
tree | 1da38bccc32bdc8cb43427b5a81a2c840e474422 /qtinterface/interface_tqt3/tmoc.cmake | |
parent | 7e133e7dbcef070455964ef0bf38663709f79fbc (diff) | |
download | tqtinterface-eee820646dd61ff8c18aba1d97afd798c96b7116.tar.gz tqtinterface-eee820646dd61ff8c18aba1d97afd798c96b7116.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 <[email protected]>
Diffstat (limited to 'qtinterface/interface_tqt3/tmoc.cmake')
-rwxr-xr-x | qtinterface/interface_tqt3/tmoc.cmake | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/qtinterface/interface_tqt3/tmoc.cmake b/qtinterface/interface_tqt3/tmoc.cmake index 8b55ef5..dda16b4 100755 --- a/qtinterface/interface_tqt3/tmoc.cmake +++ b/qtinterface/interface_tqt3/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 <ntqmetaobject.h>/ i #undef TQT_NO_COMPAT\n#include \"${input_file}\"" \ + sed "/#include <ntqmetaobject.h>/ i\\ +#undef TQT_NO_COMPAT\\ +#include \"${input_file}\"\\ +" \ > "${out_file}" fi else |