Update qt3 to tqt3 converter

pull/1/head
Timothy Pearson 13 years ago
parent 47e72a74ff
commit 801804fa5c

@ -0,0 +1,19 @@
#!/bin/bash
find ./ -type f -iname "*" -not -iwholename '*.git*' -exec sed -i 's/Q_INT8/TQ_INT8/g' {} \;
find ./ -type f -iname "*" -not -iwholename '*.git*' -exec sed -i 's/Q_INT16/TQ_INT16/g' {} \;
find ./ -type f -iname "*" -not -iwholename '*.git*' -exec sed -i 's/Q_INT32/TQ_INT32/g' {} \;
find ./ -type f -iname "*" -not -iwholename '*.git*' -exec sed -i 's/Q_INT64/TQ_INT64/g' {} \;
find ./ -type f -iname "*" -not -iwholename '*.git*' -exec sed -i 's/Q_UINT8/TQ_UINT8/g' {} \;
find ./ -type f -iname "*" -not -iwholename '*.git*' -exec sed -i 's/Q_UINT16/TQ_UINT16/g' {} \;
find ./ -type f -iname "*" -not -iwholename '*.git*' -exec sed -i 's/Q_UINT32/TQ_UINT32/g' {} \;
find ./ -type f -iname "*" -not -iwholename '*.git*' -exec sed -i 's/Q_UINT64/TQ_UINT64/g' {} \;
find ./ -type f -iname "*" -not -iwholename '*.git*' -exec sed -i 's/Q_LONG/TQ_LONG/g' {} \;
find ./ -type f -iname "*" -not -iwholename '*.git*' -exec sed -i 's/Q_LLONG/TQ_LLONG/g' {} \;
find ./ -type f -iname "*" -not -iwholename '*.git*' -exec sed -i 's/Q_ULONG/TQ_ULONG/g' {} \;
find ./ -type f -iname "*" -not -iwholename '*.git*' -exec sed -i 's/Q_ULLONG/TQ_ULLONG/g' {} \;
find ./ -type f -iname "*" -not -iwholename '*.git*' -exec sed -i 's/TTQ_INT/TQ_INT/g' {} \;
find ./ -type f -iname "*" -not -iwholename '*.git*' -exec sed -i 's/TTQ_UINT/TQ_UINT/g' {} \;
exit 0

@ -7,6 +7,7 @@ cd tqt3
patch -p0 < ../tqt3_fixups_batch2.diff patch -p0 < ../tqt3_fixups_batch2.diff
../convert_qt_itself_qt3_batch2 ../convert_qt_itself_qt3_batch2
patch -p0 < ../tqt3_fixups_batch3.diff patch -p0 < ../tqt3_fixups_batch3.diff
../convert_qt_itself_qt3_batch3
# Regenerate moc files # Regenerate moc files
cd src/moc/ cd src/moc/

Loading…
Cancel
Save