Browse Source

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>
(cherry picked from commit b5fb7ec590)
v3.5.13-sru
Slávek Banko 2 years ago
parent
commit
62d71bc106
Signed by: SlavekB
GPG Key ID: 608F5293A04BE668
  1. 2
      qtinterface/tqt-replace
  2. 6
      qtinterface/tqt-replace-stream
  3. 6
      qtinterface/tqt-replace-stream.cmake
  4. 2
      qtinterface/tqt-replace.cmake

2
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
if [[ $QT_VER == 3 ]]; then

6
qtinterface/tqt-replace-stream

@ -1,11 +1,11 @@
#!/bin/bash
QT_VER=X
if [[ $1 == "" ]]; then
if [[ "$1" == "" ]]; then
echo "Usage: tqt-replace-stream <filename>"
else
if [[ $QT_VER == 3 ]]; then
cat $1 | \
cat "$1" | \
sed 's/^TQ\([^T_]\)/Q\1/g' | \
sed 's/\([^_]\)TQ\([^T_]\)/\1Q\2/g' | \
sed 's/TQT\([^_]\)/QT\1/g' | \
@ -33,7 +33,7 @@ else
fi
if [[ $QT_VER == 4 ]]; then
cat $1 | \
cat "$1" | \
sed 's/TQAccel/Q3Accel/g' | \
sed 's/TQAccessible/QAccessible/g' | \
sed 's/TQAccessibleObject/QAccessibleObject/g' | \

6
qtinterface/tqt-replace-stream.cmake

@ -1,11 +1,11 @@
#!/bin/bash
QT_VERSION=@QT_VERSION@
if [[ $1 == "" ]]; then
if [[ "$1" == "" ]]; then
echo "Usage: tqt-replace-stream <filename>"
else
if [[ $QT_VERSION == 3 ]]; then
cat $1 | \
cat "$1" | \
sed 's/^TQ\([^T_]\)/Q\1/g' | \
sed 's/\([^_]\)TQ\([^T_]\)/\1Q\2/g' | \
sed 's/TQT\([^_]\)/QT\1/g' | \
@ -33,7 +33,7 @@ else
fi
if [[ $QT_VERSION == 4 ]]; then
cat $1 | \
cat "$1" | \
sed 's/TQAccel/Q3Accel/g' | \
sed 's/TQAccessible/QAccessible/g' | \
sed 's/TQAccessibleObject/QAccessibleObject/g' | \

2
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
if [[ $QT_VERSION == 3 ]]; then

Loading…
Cancel
Save