summaryrefslogtreecommitdiffstats
path: root/tqtinterface/conversion_scripts/convert_qt_itself1
diff options
context:
space:
mode:
Diffstat (limited to 'tqtinterface/conversion_scripts/convert_qt_itself1')
-rwxr-xr-xtqtinterface/conversion_scripts/convert_qt_itself113
1 files changed, 13 insertions, 0 deletions
diff --git a/tqtinterface/conversion_scripts/convert_qt_itself1 b/tqtinterface/conversion_scripts/convert_qt_itself1
new file mode 100755
index 0000000..d78be6f
--- /dev/null
+++ b/tqtinterface/conversion_scripts/convert_qt_itself1
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+find ./ -type f -iname "*.c*" -exec sed -i 's/\(["<]\)q\(.*\)\.h\([">]\)/\1tq\2\.h\3/g' {} \;
+find ./ -type f -iname "*.h*" -exec sed -i 's/\(["<]\)q\(.*\)\.h\([">]\)/\1tq\2\.h\3/g' {} \;
+
+find ./ -type f -iname "*.c*" -exec sed -i 's/\/q\(.*\)\.h\([">]\)/\/tq\1\.h\2/g' {} \;
+find ./ -type f -iname "*.h*" -exec sed -i 's/\/q\(.*\)\.h\([">]\)/\/tq\1\.h\2/g' {} \;
+
+find ./ -type f -iname "*.c*" -exec sed -i 's/\(["<]\)q\(.*\)\.moc\([">]\)/\1tq\2\.moc\3/g' {} \;
+find ./ -type f -iname "*.h*" -exec sed -i 's/\(["<]\)q\(.*\)\.moc\([">]\)/\1tq\2\.moc\3/g' {} \;
+
+find ./ -type f -iname "*.c*" -exec sed -i 's/\(["<]\)q\(.*\)\.cpp\([">]\)/\1tq\2\.cpp\3/g' {} \;
+find ./ -type f -iname "*.h*" -exec sed -i 's/\(["<]\)q\(.*\)\.cpp\([">]\)/\1tq\2\.cpp\3/g' {} \;