diff --git a/qt3-tqt3/convert_qt_itself_qt3_batch2 b/qt3-tqt3/convert_qt_itself_qt3_batch2 new file mode 100755 index 0000000..3a184fd --- /dev/null +++ b/qt3-tqt3/convert_qt_itself_qt3_batch2 @@ -0,0 +1,45 @@ +#!/bin/bash + +find ./ -type f -iname "*" -exec sed -i 's/QT_VERSION_STR/TQT_VERSION_STR/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/QT_VERSION/TQT_VERSION/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/QT_BUILD_KEY/TQT_BUILD_KEY/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/Q_PACKED/TQ_PACKED/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/Q_INT64_C/TQ_INT64_C/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/Q_UINT64_C/TQ_UINT64_C/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/Q_CHECK_PTR/TQ_CHECK_PTR/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/Q_DISABLE_COPY/TQ_DISABLE_COPY/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/QT_MODULE_NETWORK/TQT_MODULE_NETWORK/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/QT_MODULE_OPENGL/TQT_MODULE_OPENGL/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/QT_MODULE_SQL/TQT_MODULE_SQL/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/QT_MODULE_XML/TQT_MODULE_XML/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/QT_TR_FUNCTIONS/TQT_TR_FUNCTIONS/g' {} \; + +find ./ -type f -iname "*" -exec sed -i 's/\([ \t]\)qRound/\1tqRound/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\([ \t]\)qSwap/\1tqSwap/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\([ \t]\)qstrlen/\1tqstrlen/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\([ \t]\)qstrncmp/\1tqstrncmp/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\([ \t]\)qUncompress/\1tqUncompress/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\([ \t]\)qCopy/\1tqCopy/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\([ \t]\)qCopyBackward/\1tqCopyBackward/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\([ \t]\)qEqual/\1tqEqual/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\([ \t]\)qFill/\1tqFill/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\([ \t]\)qFind/\1tqFind/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\([ \t]\)qCount/\1tqCount/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\([ \t]\)qHash/\1tqHash/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\([ \t]\)qAppName/\1tqAppName/g' {} \; + +find ./ -type f -iname "*" -exec sed -i 's/^qRound/tqRound/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/^qSwap/tqSwap/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/^qstrlen/tqstrlen/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/^qstrncmp/tqstrncmp/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/^qUncompress/tqUncompress/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/^qCopy/tqCopy/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/^qCopyBackward/tqCopyBackward/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/^qEqual/tqEqual/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/^qFill/tqFill/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/^qFind/tqFind/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/^qCount/tqCount/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/^qHash/tqHash/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/^qAppName/tqAppName/g' {} \; + +exit 0 diff --git a/qt3-tqt3/create_tqt3_from_qt3 b/qt3-tqt3/create_tqt3_from_qt3 index f86d72f..13e60f8 100755 --- a/qt3-tqt3/create_tqt3_from_qt3 +++ b/qt3-tqt3/create_tqt3_from_qt3 @@ -5,3 +5,4 @@ cd tqt3 ../convert_qt_itself_qt3 ../header_rename_1 patch -p0 < ../tqt3_fixups_batch2.diff +../convert_qt_itself_qt3_batch2 \ No newline at end of file