diff options
Diffstat (limited to 'conversions/qt3-tqt3/convert_qt_itself_qt3_rename')
-rwxr-xr-x | conversions/qt3-tqt3/convert_qt_itself_qt3_rename | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/conversions/qt3-tqt3/convert_qt_itself_qt3_rename b/conversions/qt3-tqt3/convert_qt_itself_qt3_rename new file mode 100755 index 0000000..d78be6f --- /dev/null +++ b/conversions/qt3-tqt3/convert_qt_itself_qt3_rename @@ -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' {} \; |