Fix conversion problems and generate moc c files

pull/1/head
Timothy Pearson 13 years ago
parent f844f6a82d
commit 0f638a4a92

@ -16,19 +16,19 @@ find ./ -type f -iname "*" -exec sed -i 's/QT_TR_FUNCTIONS/TQT_TR_FUNCTIONS/g' {
find ./ -type f -iname "*" -exec sed -i 's/Q_OBJECT/TQ_OBJECT/g' {} \; find ./ -type f -iname "*" -exec sed -i 's/Q_OBJECT/TQ_OBJECT/g' {} \;
find ./ -type f -iname "*" -exec sed -i 's/TTQ_OBJECT/TQ_OBJECT/g' {} \; find ./ -type f -iname "*" -exec sed -i 's/TTQ_OBJECT/TQ_OBJECT/g' {} \;
find ./ -type f -iname "*" -exec sed -i 's/\([ :-()+/{*},[\t]\)qRound/\1tqRound/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 ]\)qSwap/\1tqSwap/g' {} \;
find ./ -type f -iname "*" -exec sed -i 's/\([ :-()+/{*},[\t]\)qstrlen/\1tqstrlen/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 ]\)qstrncmp/\1tqstrncmp/g' {} \;
find ./ -type f -iname "*" -exec sed -i 's/\([ :-()+/{*},[\t]\)qUncompress/\1tqUncompress/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 ]\)qCopy/\1tqCopy/g' {} \;
find ./ -type f -iname "*" -exec sed -i 's/\([ :-()+/{*},[\t]\)qCopyBackward/\1tqCopyBackward/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 ]\)qEqual/\1tqEqual/g' {} \;
find ./ -type f -iname "*" -exec sed -i 's/\([ :-()+/{*},[\t]\)qFill/\1tqFill/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 ]\)qFind/\1tqFind/g' {} \;
find ./ -type f -iname "*" -exec sed -i 's/\([ :-()+/{*},[\t]\)qCount/\1tqCount/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 ]\)qHash/\1tqHash/g' {} \;
find ./ -type f -iname "*" -exec sed -i 's/\([ :-()+/{*},[\t]\)qAppName/\1tqAppName/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/^qRound/tqRound/g' {} \;
find ./ -type f -iname "*" -exec sed -i 's/^qSwap/tqSwap/g' {} \; find ./ -type f -iname "*" -exec sed -i 's/^qSwap/tqSwap/g' {} \;

@ -5,4 +5,9 @@ cd tqt3
../convert_qt_itself_qt3 ../convert_qt_itself_qt3
../header_rename_1 ../header_rename_1
patch -p0 < ../tqt3_fixups_batch2.diff patch -p0 < ../tqt3_fixups_batch2.diff
../convert_qt_itself_qt3_batch2 ../convert_qt_itself_qt3_batch2
cd src/moc/
yacc -d moc.y -o moc_yacc && mv moc_yacc moc_yacc.cpp
flex moc.l
mv lex.yy.c moc_lex.cpp
Loading…
Cancel
Save