diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-12-01 14:57:45 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-12-01 14:57:45 -0600 |
commit | bb78dadad0c9a61187f4fd81c326fa49e9f7d88c (patch) | |
tree | 22dc7a4ff7f083e438da812da481b477d686becd /qt3-tqt3 | |
parent | 5db13b4934fa7784e5db83395fa0fad3780127cd (diff) | |
download | experimental-bb78dadad0c9a61187f4fd81c326fa49e9f7d88c.tar.gz experimental-bb78dadad0c9a61187f4fd81c326fa49e9f7d88c.zip |
Do not damage .git folder
Diffstat (limited to 'qt3-tqt3')
-rwxr-xr-x | qt3-tqt3/convert_qt_itself_qt3 | 76 |
1 files changed, 38 insertions, 38 deletions
diff --git a/qt3-tqt3/convert_qt_itself_qt3 b/qt3-tqt3/convert_qt_itself_qt3 index d5ed6de..a7c1a02 100755 --- a/qt3-tqt3/convert_qt_itself_qt3 +++ b/qt3-tqt3/convert_qt_itself_qt3 @@ -1,29 +1,29 @@ #!/bin/bash -find ./ -type f -iname "*.c*" -exec sed -i 's/^Q\([ABCDEFGHIJKLMNOPQRSTUVWXYZ]\)\([_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]\)/TQ\1\2/g' {} \; -find ./ -type f -iname "*.h*" -exec sed -i 's/^Q\([ABCDEFGHIJKLMNOPQRSTUVWXYZ]\)\([_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]\)/TQ\1\2/g' {} \; -find ./ -type f -iname "*.ui*" -exec sed -i 's/^Q\([ABCDEFGHIJKLMNOPQRSTUVWXYZ]\)\([_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]\)/TQ\1\2/g' {} \; +find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/^Q\([ABCDEFGHIJKLMNOPQRSTUVWXYZ]\)\([_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]\)/TQ\1\2/g' {} \; +find ./ -type f -iname "*.h*" -not -iwholename '*.git*' -exec sed -i 's/^Q\([ABCDEFGHIJKLMNOPQRSTUVWXYZ]\)\([_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]\)/TQ\1\2/g' {} \; +find ./ -type f -iname "*.ui*" -not -iwholename '*.git*' -exec sed -i 's/^Q\([ABCDEFGHIJKLMNOPQRSTUVWXYZ]\)\([_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]\)/TQ\1\2/g' {} \; -find ./ -type f -iname "*.c*" -exec sed -i 's/\([^_]\)Q\([ABCDEFGHIJKLMNOPQRSTUVWXYZ]\)\([_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]\)/\1TQ\2\3/g' {} \; -find ./ -type f -iname "*.h*" -exec sed -i 's/\([^_]\)Q\([ABCDEFGHIJKLMNOPQRSTUVWXYZ]\)\([_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]\)/\1TQ\2\3/g' {} \; -find ./ -type f -iname "*.ui*" -exec sed -i 's/\([^_]\)Q\([ABCDEFGHIJKLMNOPQRSTUVWXYZ]\)\([_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]\)/\1TQ\2\3/g' {} \; +find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/\([^_]\)Q\([ABCDEFGHIJKLMNOPQRSTUVWXYZ]\)\([_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]\)/\1TQ\2\3/g' {} \; +find ./ -type f -iname "*.h*" -not -iwholename '*.git*' -exec sed -i 's/\([^_]\)Q\([ABCDEFGHIJKLMNOPQRSTUVWXYZ]\)\([_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]\)/\1TQ\2\3/g' {} \; +find ./ -type f -iname "*.ui*" -not -iwholename '*.git*' -exec sed -i 's/\([^_]\)Q\([ABCDEFGHIJKLMNOPQRSTUVWXYZ]\)\([_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]\)/\1TQ\2\3/g' {} \; -find ./ -type f -iname "*.c*" -exec sed -i 's/Qt/TQt/g' {} \; -find ./ -type f -iname "*.h*" -exec sed -i 's/Qt/TQt/g' {} \; -find ./ -type f -iname "*.ui*" -exec sed -i 's/Qt/TQt/g' {} \; +find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/Qt/TQt/g' {} \; +find ./ -type f -iname "*.h*" -not -iwholename '*.git*' -exec sed -i 's/Qt/TQt/g' {} \; +find ./ -type f -iname "*.ui*" -not -iwholename '*.git*' -exec sed -i 's/Qt/TQt/g' {} \; -find ./ -type f -iname "*.h*" -exec sed -i 's/TTQ/TQ/g' {} \; -find ./ -type f -iname "*.h*" -exec sed -i 's/TTQ/TQ/g' {} \; -find ./ -type f -iname "*.h*" -exec sed -i 's/TTQ/TQ/g' {} \; -find ./ -type f -iname "*.h*" -exec sed -i 's/TTQ/TQ/g' {} \; -find ./ -type f -iname "*.c*" -exec sed -i 's/TTQ/TQ/g' {} \; -find ./ -type f -iname "*.c*" -exec sed -i 's/TTQ/TQ/g' {} \; -find ./ -type f -iname "*.c*" -exec sed -i 's/TTQ/TQ/g' {} \; -find ./ -type f -iname "*.c*" -exec sed -i 's/TTQ/TQ/g' {} \; -find ./ -type f -iname "*.ui*" -exec sed -i 's/TTQ/TQ/g' {} \; -find ./ -type f -iname "*.ui*" -exec sed -i 's/TTQ/TQ/g' {} \; -find ./ -type f -iname "*.ui*" -exec sed -i 's/TTQ/TQ/g' {} \; -find ./ -type f -iname "*.ui*" -exec sed -i 's/TTQ/TQ/g' {} \; +find ./ -type f -iname "*.h*" -not -iwholename '*.git*' -exec sed -i 's/TTQ/TQ/g' {} \; +find ./ -type f -iname "*.h*" -not -iwholename '*.git*' -exec sed -i 's/TTQ/TQ/g' {} \; +find ./ -type f -iname "*.h*" -not -iwholename '*.git*' -exec sed -i 's/TTQ/TQ/g' {} \; +find ./ -type f -iname "*.h*" -not -iwholename '*.git*' -exec sed -i 's/TTQ/TQ/g' {} \; +find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/TTQ/TQ/g' {} \; +find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/TTQ/TQ/g' {} \; +find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/TTQ/TQ/g' {} \; +find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/TTQ/TQ/g' {} \; +find ./ -type f -iname "*.ui*" -not -iwholename '*.git*' -exec sed -i 's/TTQ/TQ/g' {} \; +find ./ -type f -iname "*.ui*" -not -iwholename '*.git*' -exec sed -i 's/TTQ/TQ/g' {} \; +find ./ -type f -iname "*.ui*" -not -iwholename '*.git*' -exec sed -i 's/TTQ/TQ/g' {} \; +find ./ -type f -iname "*.ui*" -not -iwholename '*.git*' -exec sed -i 's/TTQ/TQ/g' {} \; sed -i 's/^Q\([ABCDEFGHIJKLMNOPQRSTUVWXYZ]\)\([_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]\)/TQ\1\2/g' src/moc/moc.l sed -i 's/^Q\([ABCDEFGHIJKLMNOPQRSTUVWXYZ]\)\([_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]\)/TQ\1\2/g' src/moc/moc.y @@ -41,31 +41,31 @@ sed -i 's/TTQ/TQ/g' src/moc/moc.l sed -i 's/TTQ/TQ/g' src/moc/moc.y # Move the library -find ./ -type f -iname "*" -exec sed -i 's/qt-mt/tqt-mt/g' {} \; -find ./ -type f -iname "*" -exec sed -i 's/qui/tqui/g' {} \; +find ./ -type f -iname "*" -not -iwholename '*.git*' -exec sed -i 's/qt-mt/tqt-mt/g' {} \; +find ./ -type f -iname "*" -not -iwholename '*.git*' -exec sed -i 's/qui/tqui/g' {} \; # Back out changes we did not want to make -find ./ -type f -iname "*" -exec sed -i 's/TQT_/QT_/g' {} \; -find ./ -type f -iname "*" -exec sed -i 's/TQMAKE/QMAKE/g' {} \; -find ./ -type f -iname "*" -exec sed -i 's/TQTDIR/QTDIR/g' {} \; -find ./ -type f -iname "*" -exec sed -i 's/OBLITQUE/OBLIQUE/g' {} \; -find ./ -type f -iname "*" -exec sed -i 's/ATQUA/AQUA/g' {} \; +find ./ -type f -iname "*" -not -iwholename '*.git*' -exec sed -i 's/TQT_/QT_/g' {} \; +find ./ -type f -iname "*" -not -iwholename '*.git*' -exec sed -i 's/TQMAKE/QMAKE/g' {} \; +find ./ -type f -iname "*" -not -iwholename '*.git*' -exec sed -i 's/TQTDIR/QTDIR/g' {} \; +find ./ -type f -iname "*" -not -iwholename '*.git*' -exec sed -i 's/OBLITQUE/OBLIQUE/g' {} \; +find ./ -type f -iname "*" -not -iwholename '*.git*' -exec sed -i 's/ATQUA/AQUA/g' {} \; -find ./ -type f -iname "*" -exec sed -i 's/QUType_Q/QUType_TQ/g' {} \; -find ./ -type f -iname "*" -exec sed -i 's/\([ (]\)Q\#\#/\1TQ\#\#/g' {} \; -find ./ -type f -iname "*" -exec sed -i 's/STQL/SQL/g' {} \; +find ./ -type f -iname "*" -not -iwholename '*.git*' -exec sed -i 's/QUType_Q/QUType_TQ/g' {} \; +find ./ -type f -iname "*" -not -iwholename '*.git*' -exec sed -i 's/\([ (]\)Q\#\#/\1TQ\#\#/g' {} \; +find ./ -type f -iname "*" -not -iwholename '*.git*' -exec sed -i 's/STQL/SQL/g' {} \; -find ./ -type f -iname "*" -exec sed -i 's/tquiv/quiv/g' {} \; +find ./ -type f -iname "*" -not -iwholename '*.git*' -exec sed -i 's/tquiv/quiv/g' {} \; -find ./ -type f -iname "*" -exec sed -i 's/\([^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]\)tquit/\1quit/g' {} \; -find ./ -type f -iname "*" -exec sed -i 's/^tquit/quit/g' {} \; +find ./ -type f -iname "*" -not -iwholename '*.git*' -exec sed -i 's/\([^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]\)tquit/\1quit/g' {} \; +find ./ -type f -iname "*" -not -iwholename '*.git*' -exec sed -i 's/^tquit/quit/g' {} \; -find ./ -type f -iname "*" -exec sed -i 's/RETQUIRE/REQUIRE/g' {} \; -find ./ -type f -iname "*" -exec sed -i 's/Retquire/Require/g' {} \; -find ./ -type f -iname "*" -exec sed -i 's/retquire/require/g' {} \; +find ./ -type f -iname "*" -not -iwholename '*.git*' -exec sed -i 's/RETQUIRE/REQUIRE/g' {} \; +find ./ -type f -iname "*" -not -iwholename '*.git*' -exec sed -i 's/Retquire/Require/g' {} \; +find ./ -type f -iname "*" -not -iwholename '*.git*' -exec sed -i 's/retquire/require/g' {} \; # Apply changes that should have been made but were not -find ./ -type f -iname "*" -exec sed -i 's/aboutQt/aboutTQt/g' {} \; +find ./ -type f -iname "*" -not -iwholename '*.git*' -exec sed -i 's/aboutQt/aboutTQt/g' {} \; # Back out linear alphabet string changes find ./ -type f -iname "*" -not -iwholename '*.git*' -exec sed -i 's/MNOPTQR/MNOPQR/g' {} \; |