Sync conversion scripts

pull/1/head
Timothy Pearson 13 years ago
parent 7901b39dae
commit 6f533fb364

@ -109,6 +109,18 @@ find ./ -type f -iname "*" -exec sed -i 's/tqparent/parent/g' {} \;
find ./ -type f -iname "*" -exec sed -i 's/tqmask/mask/g' {} \; find ./ -type f -iname "*" -exec sed -i 's/tqmask/mask/g' {} \;
find ./ -type f -iname "*" -exec sed -i 's/\"tqStatus/\"Status/g' {} \; find ./ -type f -iname "*" -exec sed -i 's/\"tqStatus/\"Status/g' {} \;
# Replace all last occurrences of tqStatus within a quoted string
# find ./ -type f -iname "*" -exec sed -i 's/\(.*\)\"\([^"]*\)tqStatus\([^"]*\)\"\(.*\)/\1\"\2Status\3\"\4/g' {} \; # find ./ -type f -iname "*" -exec sed -i 's/\(.*\)\"\([^"]*\)tqStatus\([^"]*\)\"\(.*\)/\1\"\2Status\3\"\4/g' {} \;
# Replace all first occurrences of tqStatus within a quoted string
# find ./ -type f -iname "*" -exec sed -i 's/\([^"]*\)\"\([^"]*\)tqStatus\([^"]*\)\"\(.*\)/\1\"\2Status\3\"\4/g' {} \;
# Replace all second occurrences of tqStatus within a quoted string
# find ./ -type f -iname "*" -exec sed -i 's/\([^"]*\)\"\([^"]*\)\"\([^"]*\)\"\([^"]*\)tqStatus\([^"]*\)\"\(.*\)/\1\"\2\"\3\"\4Status\5\"\6/g' {} \;
# Replace all third occurrences of tqStatus within a quoted string
# find ./ -type f -iname "*" -exec sed -i 's/\([^"]*\)\"\([^"]*\)\"\([^"]*\)\"\([^"]*\)\"\([^"]*\)\"\([^"]*\)\"\([^"]*\)tqStatus\([^"]*\)\"\(.*\)/\1\"\2\"\3\"\4\"\5\"\6\"\7Status\8\"\9/g' {} \;
find ./ -type f -iname "*" -exec sed -i 's/STQL/SQL/g' {} \; find ./ -type f -iname "*" -exec sed -i 's/STQL/SQL/g' {} \;
# If "TQ ended up in a cpp file it is probably wrong
find ./ -type f -iname "*.c*" -not -iwholename '*.svn*' -exec sed -i 's/\"TQ\([ABCDEFGHIJKLMNOPQRSTUVWXYZ]\)\([ABCDEFGHIJKLMNOPQRSTUVWXYZ]\)\([ABCDEFGHIJKLMNOPQRSTUVWXYZ"]\)/\"Q\1\2\3/g' {} \;
find ./ -type f -iname "*.h*" -not -iwholename '*.svn*' -exec sed -i 's/\"TQ\([ABCDEFGHIJKLMNOPQRSTUVWXYZ]\)\([ABCDEFGHIJKLMNOPQRSTUVWXYZ]\)\([ABCDEFGHIJKLMNOPQRSTUVWXYZ"]\)/\"Q\1\2\3/g' {} \;

Loading…
Cancel
Save