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>
master
Slávek Banko 9 months ago
parent
commit
b5fb7ec590
Signed by: SlavekB GPG Key ID: 608F5293A04BE668
  1. 2
      qtinterface/tqt-replace
  2. 4
      qtinterface/tqt-replace-stream
  3. 4
      qtinterface/tqt-replace-stream-tqt3.cmake
  4. 4
      qtinterface/tqt-replace-stream.cmake
  5. 2
      qtinterface/tqt-replace-tqt3.cmake
  6. 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
sed -i 's/^TQ\([^T_]\)/Q\1/g' "$1"

4
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' | \

4
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

4
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' | \

2
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"

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
sed -i 's/^TQ\([^T_]\)/Q\1/g' "$1"

Loading…
Cancel
Save