summaryrefslogtreecommitdiffstats
path: root/qtinterface
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2020-09-14 02:49:15 +0200
committerSlávek Banko <slavek.banko@axis.cz>2020-09-14 02:57:15 +0200
commitb5fb7ec59011fb1a75ae84c718ed7e7c19e33dd2 (patch)
tree348e95ee286e055da3850457eaff030fbb849ffe /qtinterface
parent78d7836b23b4687b2809f9d4338850cc4476a875 (diff)
downloadtqtinterface-b5fb7ec59011fb1a75ae84c718ed7e7c19e33dd2.tar.gz
tqtinterface-b5fb7ec59011fb1a75ae84c718ed7e7c19e33dd2.zip
Add quotes for the file name used as a parameter in tqt-replace scripts.
This resolves bug 3158. Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'qtinterface')
-rwxr-xr-xqtinterface/tqt-replace2
-rwxr-xr-xqtinterface/tqt-replace-stream4
-rwxr-xr-xqtinterface/tqt-replace-stream-tqt3.cmake4
-rwxr-xr-xqtinterface/tqt-replace-stream.cmake4
-rwxr-xr-xqtinterface/tqt-replace-tqt3.cmake2
-rwxr-xr-xqtinterface/tqt-replace.cmake2
6 files changed, 9 insertions, 9 deletions
diff --git a/qtinterface/tqt-replace b/qtinterface/tqt-replace
index da752d2..45e1cff 100755
--- a/qtinterface/tqt-replace
+++ b/qtinterface/tqt-replace
@@ -1,7 +1,7 @@
#!/bin/bash
QT_VER=X
-if [[ $1 == "" ]]; then
+if [[ "$1" == "" ]]; then
echo "Usage: tqt-replace <input_file>"
else
sed -i 's/^TQ\([^T_]\)/Q\1/g' "$1"
diff --git a/qtinterface/tqt-replace-stream b/qtinterface/tqt-replace-stream
index ff0d08d..ccf1ab0 100755
--- a/qtinterface/tqt-replace-stream
+++ b/qtinterface/tqt-replace-stream
@@ -1,10 +1,10 @@
#!/bin/bash
QT_VER=X
-if [[ $1 == "" ]]; then
+if [[ "$1" == "" ]]; then
echo "Usage: tqt-replace-stream <filename>"
else
- cat $1 | \
+ cat "$1" | \
sed 's/^TQ\([^T_]\)/Q\1/g' | \
sed 's/\([^_]\)TQ\([^T_]\)/\1Q\2/g' | \
sed 's/TQT\([^_]\)/QT\1/g' | \
diff --git a/qtinterface/tqt-replace-stream-tqt3.cmake b/qtinterface/tqt-replace-stream-tqt3.cmake
index c30e562..14f7308 100755
--- a/qtinterface/tqt-replace-stream-tqt3.cmake
+++ b/qtinterface/tqt-replace-stream-tqt3.cmake
@@ -1,8 +1,8 @@
#!/bin/bash
QT_VERSION=@QT_VERSION@
-if [[ $1 == "" ]]; then
+if [[ "$1" == "" ]]; then
echo "Usage: tqt-replace-stream <filename>"
else
- cat $1 | sed 's/^Q_OBJECT/TQ_OBJECT/g' | sed 's/\([^T]\)Q_OBJECT/\1TQ_OBJECT/g'
+ cat "$1" | sed 's/^Q_OBJECT/TQ_OBJECT/g' | sed 's/\([^T]\)Q_OBJECT/\1TQ_OBJECT/g'
fi
diff --git a/qtinterface/tqt-replace-stream.cmake b/qtinterface/tqt-replace-stream.cmake
index 3f8daca..fcaeced 100755
--- a/qtinterface/tqt-replace-stream.cmake
+++ b/qtinterface/tqt-replace-stream.cmake
@@ -1,10 +1,10 @@
#!/bin/bash
QT_VERSION=@QT_VERSION@
-if [[ $1 == "" ]]; then
+if [[ "$1" == "" ]]; then
echo "Usage: tqt-replace-stream <filename>"
else
- cat $1 | \
+ cat "$1" | \
sed 's/^TQ\([^T_]\)/Q\1/g' | \
sed 's/\([^_]\)TQ\([^T_]\)/\1Q\2/g' | \
sed 's/TQT\([^_]\)/QT\1/g' | \
diff --git a/qtinterface/tqt-replace-tqt3.cmake b/qtinterface/tqt-replace-tqt3.cmake
index cb7de9c..413dee5 100755
--- a/qtinterface/tqt-replace-tqt3.cmake
+++ b/qtinterface/tqt-replace-tqt3.cmake
@@ -1,7 +1,7 @@
#!/bin/bash
QT_VERSION=@QT_VERSION@
-if [[ $1 == "" ]]; then
+if [[ "$1" == "" ]]; then
echo "Usage: tqt-replace <input_file>"
else
sed -i 's/Q_SLOTS>/slots>/g' "$1"
diff --git a/qtinterface/tqt-replace.cmake b/qtinterface/tqt-replace.cmake
index 282b1e8..15b4b6f 100755
--- a/qtinterface/tqt-replace.cmake
+++ b/qtinterface/tqt-replace.cmake
@@ -1,7 +1,7 @@
#!/bin/bash
QT_VERSION=@QT_VERSION@
-if [[ $1 == "" ]]; then
+if [[ "$1" == "" ]]; then
echo "Usage: tqt-replace <input_file>"
else
sed -i 's/^TQ\([^T_]\)/Q\1/g' "$1"