summaryrefslogtreecommitdiffstats
path: root/qtinterface/tqt-replace
blob: d11e243fabead8bba39c7a5f449fd5c9c0c88822 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash
QT_VER=3

if [[ $1 == "" ]]; then
	echo "Usage: tqt-replace <input_file>"
else
	if [[ $QT_VER == 3 ]]; then
		sed -i 's/TQ\([^T]\)/Q\1/g' "$1"
		sed -i 's/TQT\([^_]\)/QT\1/g' "$1"
		exit 0
	fi

	if [[ $QT_VER == 4 ]]; then
		echo "ERROR: Not Yet Implemented"
		exit 1
	fi
fi