aboutsummaryrefslogtreecommitdiffstats
path: root/bin/rename-qtdeclarative-symbols.sh
blob: c9a70128ca8469470efb38e2ef3bb212b0822407 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
#!/bin/sh
#############################################################################
##
## Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
## Contact: http://www.qt-project.org/
##
## This file is part of the QtQml module of the Qt Toolkit.
##
## $QT_BEGIN_LICENSE:LGPL$
## GNU Lesser General Public License Usage
## This file may be used under the terms of the GNU Lesser General Public
## License version 2.1 as published by the Free Software Foundation and
## appearing in the file LICENSE.LGPL included in the packaging of this
## file. Please review the following information to ensure the GNU Lesser
## General Public License version 2.1 requirements will be met:
## http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
##
## In addition, as a special exception, Nokia gives you certain additional
## rights. These rights are described in the Nokia Qt LGPL Exception
## version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
##
## GNU General Public License Usage
## Alternatively, this file may be used under the terms of the GNU General
## Public License version 3.0 as published by the Free Software Foundation
## and appearing in the file LICENSE.GPL included in the packaging of this
## file. Please review the following information to ensure the GNU General
## Public License version 3.0 requirements will be met:
## http://www.gnu.org/copyleft/gpl.html.
##
## Other Usage
## Alternatively, this file may be used in accordance with the terms and
## conditions contained in a signed written agreement between you and Nokia.
##
##
##
##
##
##
## $QT_END_LICENSE$
##
#############################################################################

# Replaces deprecated QDeclarative symbol names with their replacements
#
# Changes instances in all regular files under the specified directory;
# use on a clean source tree!

if [ "$#" -lt "1" ]
then
    echo "    Usage: $0 <directory>"
    exit 1;
fi

MODIFY_DIR="$1"

QML_SYMBOLS="\
    QDeclarativeAbstractBinding
    QDeclarativeAbstractBoundSignal
    QDeclarativeAbstractExpression
    QDeclarativeAccessible
    QDeclarativeAccessors
    QDeclarativeAccessorProperties
    QDeclarativeAnimationTimer
    QDeclarativeAssociationList
    QDeclarativeAttachedPropertiesFunc
    QDeclarativeBinding
    QDeclarativeBindingPrivate
    QDeclarativeBindingProfiler
    QDeclarativeBoundSignal
    QDeclarativeBoundSignalParameters
    QDeclarativeBoundSignalProxy
    QDeclarativeBuiltinFunctions
    QDeclarativeCleanup
    QDeclarativeColorValueType
    QDeclarativeCompiledData
    QDeclarativeCompiler
    QDeclarativeCompilerTypes
    QDeclarativeCompilingProfiler
    QDeclarativeComponent
    QDeclarativeComponentAttached
    QDeclarativeComponentExtension
    QDeclarativeComponentPrivate
    QDeclarativeComponent_setQmlParent
    QDeclarativeCompositeTypeData
    QDeclarativeConnectionsParser
    QDeclarativeContext
    QDeclarativeContextData
    QDeclarativeContextPrivate
    QDeclarativeCustomParser
    QDeclarativeCustomParserNode
    QDeclarativeCustomParserNodePrivate
    QDeclarativeCustomParserProperty
    QDeclarativeCustomParserPropertyPrivate
    QDeclarativeData
    QDeclarativeDataBlob
    QDeclarativeDataExtended
    QDeclarativeDataLoader
    QDeclarativeDataLoaderNetworkReplyProxy
    QDeclarativeDataLoaderThread
    QDeclarativeDateExtension
    QDeclarativeDataTest
    QDeclarativeDebug
    QDeclarativeDebugClient
    QDeclarativeDebugClientPrivate
    QDeclarativeDebugConnection
    QDeclarativeDebugConnectionPrivate
    QDeclarativeDebugContextReference
    QDeclarativeDebugData
    QDeclarativeDebugEngineReference
    QDeclarativeDebugEnginesQuery
    QDeclarativeDebugExpressionQuery
    QDeclarativeDebugFileReference
    QDeclarativeDebugger
    QDeclarativeDebuggingEnabler
    QDeclarativeDebugHelper
    QDeclarativeDebugObjectExpressionWatch
    QDeclarativeDebugObjectQuery
    QDeclarativeDebugObjectReference
    QDeclarativeDebugPropertyReference
    QDeclarativeDebugPropertyWatch
    QDeclarativeDebugQuery
    QDeclarativeDebugRootContextQuery
    QDeclarativeDebugServer
    QDeclarativeDebugServerConnection
    QDeclarativeDebugServerPrivate
    QDeclarativeDebugServerThread
    QDeclarativeDebugService
    QDeclarativeDebugServicePrivate
    QDeclarativeDebugStatesDelegate
    QDeclarativeDebugTrace
    QDeclarativeDebugWatch
    QDeclarativeDelayedError
    QDeclarativeDirComponents
    QDeclarativeDirParser
    QDeclarativeDirScripts
    QDeclarativeDOMNodeResource
    QDeclarativeEasingValueType
    QDeclarativeElement
    QDeclarativeEngine
    QDeclarativeEngineDebug
    QDeclarativeEngineDebugClient
    QDeclarativeEngineDebugService
    QDeclarativeEngineDebugPrivate
    QDeclarativeEnginePrivate
    QDeclarativeError
    QDeclarativeErrorPrivate
    QDeclarativeExpression
    QDeclarativeExpressionPrivate
    QDeclarativeExtensionInterface
    QDeclarativeExtensionPlugin
    QDeclarativeFontValueType
    QDeclarativeGraphics_DerivedObject
    QDeclarativeGuard
    QDeclarativeGuardedContextData
    QDeclarativeGuardImpl
    QDeclarativeHandlingSignalProfiler
    QDeclarativeImportDatabase
    QDeclarativeImportedNamespace
    QDeclarativeImports
    QDeclarativeImportsPrivate
    QDeclarativeIncubationController
    QDeclarativeIncubator
    QDeclarativeIncubatorController
    QDeclarativeIncubatorPrivate
    QDeclarativeIncubators
    QDeclarativeInfo
    QDeclarativeInfoPrivate
    QDeclarativeInspector
    QDeclarativeInspectorInterface
    QDeclarativeInspectorService
    QDeclarativeInstruction
    QDeclarativeInstructionData
    QDeclarativeInstructionMeta
    QDeclarativeIntegerCache
    QDeclarativeJavaScriptExpression
    QDeclarativeJavaScriptExpressionGuard
    QDeclarativeJS
    QDeclarativeJSGrammar
    QDeclarativeListProperty
    QDeclarativeListReference
    QDeclarativeListReferencePrivate
    QDeclarativeLocale
    QDeclarativeLocalStoragePlugin
    QDeclarativeMatrix4x4ValueType
    QDeclarativeMetaType
    QDeclarativeMetaTypeData
    QDeclarativeNetworkAccessManagerFactory
    QDeclarativeNotifier
    QDeclarativeNotifierEndpoint
    QDeclarativeNullableValue
    QDeclarativeNumberExtension
    QDeclarativeObjectCreatingProfiler
    QDeclarativeObjectData
    QDeclarativeObjectProperty
    QDeclarativeObserverMode
    QDeclarativeOpenMetaObject
    QDeclarativeOpenMetaObjectPrivate
    QDeclarativeOpenMetaObjectType
    QDeclarativeOpenMetaObjectTypePrivate
    QDeclarativeParser
    QDeclarativeParserStatus
    QDeclarativePointFValueType
    QDeclarativePointValueType
    QDeclarativePool
    QDeclarativePrivate
    QDeclarativeProfilerData
    QDeclarativeProfilerService
    QDeclarativeProperties
    QDeclarativeProperty
    QDeclarativePropertyCache
    QDeclarativePropertyCacheMethodArguments
    QDeclarativePropertyData
    QDeclarativePropertyMap
    QDeclarativePropertyMapMetaObject
    QDeclarativePropertyMapPrivate
    QDeclarativePropertyPrivate
    QDeclarativePropertyRawData
    QDeclarativePropertyValueInterceptor
    QDeclarativePropertyValueSource
    QDeclarativeProxyMetaObject
    QDeclarativeQmldirData
    QDeclarativeQtQuick1Module
    QDeclarativeQtQuick2Module
    QDeclarativeQtQuick2DebugStatesDelegate
    QDeclarativeQuaternionValueType
    QDeclarativeRectFValueType
    QDeclarativeRectValueType
    QDeclarativeRefCount
    QDeclarativeRefPointer
    QDeclarativeRegisterType
    QDeclarativeRewrite
    QDeclarativeScript
    QDeclarativeScriptBlob
    QDeclarativeScriptData
    QDeclarativeScriptPrivate
    QDeclarativeScriptString
    QDeclarativeScriptStringPrivate
    QDeclarativeSizeFValueType
    QDeclarativeSizeValueType
    QDeclarativeSqlDatabaseData
    QDeclarativeStringConverters
    QDeclarativeThread
    QDeclarativeThreadPrivate
    QDeclarativeTrace
    QDeclarativeType
    QDeclarativeTypeData
    QDeclarativeTypeInfo
    QDeclarativeTypeLoader
    QDeclarativeTypeModule
    QDeclarativeTypeModulePrivate
    QDeclarativeTypeModuleVersion
    QDeclarativeTypeNameCache
    QDeclarativeTypeNotAvailable
    QDeclarativeTypePrivate
    QDeclarativeTypesExtensionInterface
    QDeclarativeV8Function
    QDeclarativeV8Handle
    QDeclarativeValueType
    QDeclarativeValueTypeProxyBinding
    QDeclarativeValueTypeFactory
    QDeclarativeVector2DValueType
    QDeclarativeVector3DValueType
    QDeclarativeVector4DValueType
    QDeclarativeVME
    QDeclarativeVMEGuard
    QDeclarativeVMEMetaData
    QDeclarativeVMEMetaObject
    QDeclarativeVMEMetaObjectEndpoint
    QDeclarativeVMEVariant
    QDeclarativeVMETypes
    QDeclarativeWatcher
    QDeclarativeWatchProxy
    QDeclarativeXMLHttpRequest
    QDeclarativeXMLHttpRequestData
    QDeclarative_isFileCaseCorrect
    QDeclarative_setParent_noEvent
    QQuickProperties
    QQuickPropertyCacheMethodArguments
    QQuickPropertyData
"

QUICK_SYMBOLS="\
    QDeclarativeAbstractAnimation
    QDeclarativeAbstractAnimationAction
    QDeclarativeAbstractAnimationPrivate
    QDeclarativeAction
    QDeclarativeActionEvent
    QDeclarativeAnchors
    QDeclarativeAnimationController
    QDeclarativeAnimationControllerPrivate
    QDeclarativeAnimationGroup
    QDeclarativeAnimationGroupPrivate
    QDeclarativeAnimationPropertyUpdater
    QDeclarativeApplication
    QDeclarativeApplicationPrivate
    QDeclarativeBehavior
    QDeclarativeBehaviorPrivate
    QDeclarativeBind
    QDeclarativeBindPrivate
    QDeclarativeBulkValueAnimator
    QDeclarativeBulkValueUpdater
    QDeclarativeCachedBezier
    QDeclarativeChangeSet
    QDeclarativeColorAnimation
    QDeclarativeConnections
    QDeclarativeConnectionsPrivate
    QDeclarativeCurve
    QDeclarativeDefaultTextureFactory
    QDeclarativeFlick
    QDeclarativeFocusPanel
    QDeclarativeFolderListModel
    QDeclarativeFolderListModelPrivate
    QDeclarativeFontLoader
    QDeclarativeFontLoaderPrivate
    QDeclarativeFontObject
    QDeclarativeGestureArea
    QDeclarativeGestureAreaParser
    QDeclarativeGestureAreaPrivate
    QDeclarativeGraphics
    QDeclarativeImageProvider
    QDeclarativeImageProviderPrivate
    QDeclarativeItem
    QDeclarativeItemAccessor
    QDeclarativeItemChangeListener
    QDeclarativeItemKeyFilter
    QDeclarativeItemPrivate
    QDeclarativeListAccessor
    QDeclarativeListCompositor
    QDeclarativeListElement
    QDeclarativeListModel
    QDeclarativeListModelParser
    QDeclarativeListModelWorkerAgent
    QDeclarativeListView
    QDeclarativeNumberAnimation
    QDeclarativePackage
    QDeclarativePackageAttached
    QDeclarativePackagePrivate
    QDeclarativeParallelAnimation
    QDeclarativeParticle
    QDeclarativeParticleMotion
    QDeclarativeParticleMotionGravity
    QDeclarativeParticleMotionLinear
    QDeclarativeParticleMotionWander
    QDeclarativeParticles
    QDeclarativeParticlesPainter
    QDeclarativeParticlesPrivate
    QDeclarativePath
    QDeclarativePathArc
    QDeclarativePathAttribute
    QDeclarativePathCatmullRomCurve
    QDeclarativePathCubic
    QDeclarativePathCurve
    QDeclarativePathData
    QDeclarativePathElement
    QDeclarativePathInterpolator
    QDeclarativePathLine
    QDeclarativePathPercent
    QDeclarativePathPrivate
    QDeclarativePathQuad
    QDeclarativePathSvg
    QDeclarativePauseAnimation
    QDeclarativePauseAnimationPrivate
    QDeclarativePixmap
    QDeclarativePixmapData
    QDeclarativePixmapKey
    QDeclarativePixmapNull
    QDeclarativePixmapReader
    QDeclarativePixmapReaderThreadObject
    QDeclarativePixmapReply
    QDeclarativePixmapStore
    QDeclarativePropertyAction
    QDeclarativePropertyActionPrivate
    QDeclarativePropertyAnimation
    QDeclarativePropertyAnimationPrivate
    QDeclarativePropertyChanges
    QDeclarativePropertyChangesParser
    QDeclarativePropertyChangesPrivate
    QDeclarativeReplaceSignalHandler
    QDeclarativeRevertAction
    QDeclarativeRotationAnimation
    QDeclarativeRotationAnimationPrivate
    QDeclarativeSequentialAnimation
    QDeclarativeScriptAction
    QDeclarativeScriptActionPrivate
    QDeclarativeSetPropertyAnimationAction
    QDeclarativeSimpleAction
    QDeclarativeSmoothedAnimation
    QDeclarativeSmoothedAnimationPrivate
    QDeclarativeSpringAnimation
    QDeclarativeSpringAnimationPrivate
    QDeclarativeState
    QDeclarativeStateActions
    QDeclarativeStateChange
    QDeclarativeStateChangeScript
    QDeclarativeStateChangeScriptPrivate
    QDeclarativeStateGroup
    QDeclarativeStateGroupPrivate
    QDeclarativeStateOperation
    QDeclarativeStateOperationPrivate
    QDeclarativeStatePrivate
    QDeclarativeStyledText
    QDeclarativeStyledTextImgTag
    QDeclarativeStyledTextPrivate
    QDeclarativeSystemPalette
    QDeclarativeSystemPalettePrivate
    QDeclarativeTextureFactory
    QDeclarativeTimeLine
    QDeclarativeTimeLineCallback
    QDeclarativeTimeLineObject
    QDeclarativeTimeLinePrivate
    QDeclarativeTimeLineValue
    QDeclarativeTimeLineValueProxy
    QDeclarativeTimeLineValues
    QDeclarativeTimer
    QDeclarativeTimerPrivate
    QDeclarativeTransition
    QDeclarativeTransitionInstance
    QDeclarativeTransitionManager
    QDeclarativeTransitionManagerPrivate
    QDeclarativeTransitionPrivate
    QDeclarativeUtilModule
    QDeclarativeVector3dAnimation
    QDeclarativeView
    QDeclarativeViewInspector
    QDeclarativeViewInspectorPrivate
    QDeclarativeViewPrivate
    QDeclarativeWebView
    QDeclarativeXmlListModel
    QDeclarativeXmlListModelPrivate
    QDeclarativeXmlListModelRole
    QDeclarativeXmlListRange
    QDeclarativeXmlQueryEngine
    QDeclarativeXmlQueryResult
    QDeclarativeXmlQueryThreadObject
    QDeclarativeXmlRoleList
    QDeclarativeSvgParser
    QDeclarativeWorkerScript
    QDeclarativeWorkerScriptEngine
    QDeclarativeWorkerScriptEnginePrivate
"

QML_INCLUDE_FILES="\
    qdeclarativeaccessible.h
    qdeclarativeaccessors_p.h
    qdeclarativebinding_p.h
    qdeclarativebinding_p_p.h
    qdeclarativeboundsignal_p.h
    qdeclarativebuiltinfunctions_p.h
    qdeclarativecleanup_p.h
    qdeclarativecompiler_p.h
    qdeclarativecomponentattached_p.h
    qdeclarativecomponent.h
    qdeclarativecomponent_p.h
    qdeclarativecontext.h
    qdeclarativecontext_p.h
    qdeclarativecustomparser_p.h
    qdeclarativecustomparser_p_p.h
    qdeclarativedata_p.h
    qdeclarativedebugclient_p.h
    qdeclarativedebug.h
    qdeclarativedebughelper_p.h
    qdeclarativedebugserverconnection_p.h
    qdeclarativedebugserver_p.h
    qdeclarativedebugservice_p.h
    qdeclarativedebugservice_p_p.h
    qdeclarativedebugstatesdelegate_p.h
    qdeclarativedebugtrace_p.h
    qdeclarativedirparser_p.h
    qdeclarativeenginedebug_p.h
    qdeclarativeenginedebugservice_p.h
    qdeclarativeengine.h
    qdeclarativeengine_p.h
    qdeclarativeerror.h
    qdeclarativeexpression.h
    qdeclarativeexpression_p.h
    qdeclarativeextensioninterface.h
    qdeclarativeextensionplugin.h
    qdeclarativeglobal_p.h
    qdeclarativeguard_p.h
    qdeclarative.h
    qdeclarativeimageprovider.h
    qdeclarativeimport_p.h
    qdeclarativeincubator.h
    qdeclarativeincubator_p.h
    qdeclarativeinfo.h
    qdeclarativeinspectorinterface_p.h
    qdeclarativeinspectorprotocol.h
    qdeclarativeinspectorservice_p.h
    qdeclarativeinstruction_p.h
    qdeclarativeintegercache_p.h
    qdeclarativejsastfwd_p.h
    qdeclarativejsast_p.h
    qdeclarativejsastvisitor_p.h
    qdeclarativejsengine_p.h
    qdeclarativejsglobal_p.h
    qdeclarativejsgrammar_p.h
    qdeclarativejskeywords_p.h
    qdeclarativejslexer_p.h
    qdeclarativejsmemorypool_p.h
    qdeclarativejsparser_p.h
    qdeclarativelist.h
    qdeclarativelist_p.h
    qdeclarativelocale_p.h
    qdeclarativemetatype_p.h
    qdeclarativenetworkaccessmanagerfactory.h
    qdeclarativenotifier_p.h
    qdeclarativenullablevalue_p_p.h
    qdeclarativeopenmetaobject_p.h
    qdeclarativeparserstatus.h
    qdeclarativepool_p.h
    qdeclarativeprivate.h
    qdeclarativeprofilerservice_p.h
    qdeclarativepropertycache_p.h
    qdeclarativeproperty.h
    qdeclarativepropertymap.h
    qdeclarativeproperty_p.h
    qdeclarativepropertyvalueinterceptor_p.h
    qdeclarativepropertyvaluesource.h
    qdeclarativeproxymetaobject_p.h
    qdeclarativerefcount_p.h
    qdeclarativerewrite_p.h
    qdeclarativescript_p.h
    qdeclarativescriptstring.h
    qdeclarativescriptstring_p.h
    qdeclarativesqldatabase_p.h
    qdeclarativestringconverters_p.h
    qdeclarativethread_p.h
    qdeclarativetrace_p.h
    qdeclarativetypeloader_p.h
    qdeclarativetypenamecache_p.h
    qdeclarativetypenotavailable_p.h
    qdeclarativevaluetype_p.h
    qdeclarativevmemetaobject_p.h
    qdeclarativevme_p.h
    qdeclarativewatcher_p.h
    qdeclarativexmlhttprequest_p.h
    qdeclarativexmllistmodel_p.h
"

QUICK_INCLUDE_FILES="\
    qdeclarativeanimation_p.h
    qdeclarativeanimation_p_p.h
    qdeclarativeanimationcontroller_p.h
    qdeclarativeapplication_p.h
    qdeclarativebehavior_p.h
    qdeclarativebind_p.h
    qdeclarativechangeset_p.h
    qdeclarativeconnections_p.h
    qdeclarativefolderlistmodel.h
    qdeclarativefontloader_p.h
    qdeclarativelistaccessor_p.h
    qdeclarativelistcompositor_p.h
    qdeclarativelistmodel_p.h
    qdeclarativelistmodel_p_p.h
    qdeclarativelistmodelworkeragent_p.h
    qdeclarativepackage_p.h
    qdeclarativepathinterpolator_p.h
    qdeclarativepath_p.h
    qdeclarativepath_p_p.h
    qdeclarativepixmapcache_p.h
    qdeclarativepropertychanges_p.h
    qdeclarativesmoothedanimation_p.h
    qdeclarativesmoothedanimation_p_p.h
    qdeclarativespringanimation_p.h
    qdeclarativestategroup_p.h
    qdeclarativestateoperations_p.h
    qdeclarativestate_p.h
    qdeclarativestate_p_p.h
    qdeclarativestyledtext_p.h
    qdeclarativesvgparser_p.h
    qdeclarativesystempalette_p.h
    qdeclarativetimeline_p_p.h
    qdeclarativetimer_p.h
    qdeclarativetransitionmanager_p_p.h
    qdeclarativetransition_p.h
    qdeclarativeutilmodule_p.h
    qdeclarativeworkerscript_p.h
"

replaceMatch()
{
    SYMBOL="$1"
    REPLACEMENT="$2"
    echo "Replacing $SYMBOL with $REPLACEMENT:"

    CONTAINERS=$(find "$MODIFY_DIR" ! -path ".git" -type f | xargs grep -l -I "$SYMBOL")
    for CONTAINER in $CONTAINERS
    do
        echo "    $CONTAINER"
        TMP_FILE="$CONTAINER.tmp"

        sed 's|'"$SYMBOL"'|'"$REPLACEMENT"'|g' <"$CONTAINER" >"$TMP_FILE"
        mv "$TMP_FILE" "$CONTAINER"
    done
    echo
}

for QML_SYMBOL in $QML_SYMBOLS
do
    QML_REPLACEMENT="QQml${QML_SYMBOL#QDeclarative}"
    replaceMatch "\<QtDeclarative/$QML_SYMBOL\>" "QtQml/$QML_REPLACEMENT"
    replaceMatch "\<$QML_SYMBOL\>" "$QML_REPLACEMENT"
done

for QUICK_SYMBOL in $QUICK_SYMBOLS
do
    QUICK_REPLACEMENT="QQuick${QUICK_SYMBOL#QDeclarative}"
    replaceMatch "\<QtDeclarative/$QUICK_SYMBOL\>" "QtQuick/$QUICK_REPLACEMENT"
    replaceMatch "\<$QUICK_SYMBOL\>" "$QUICK_REPLACEMENT"
done

for QML_INCLUDE_FILE in $QML_INCLUDE_FILES
do
    QML_INCLUDE_REPLACEMENT="qqml${QML_INCLUDE_FILE#qdeclarative}"
    replaceMatch "\<$QML_INCLUDE_FILE\>" "$QML_INCLUDE_REPLACEMENT"
done

for QUICK_INCLUDE_FILE in $QUICK_INCLUDE_FILES
do
    QUICK_INCLUDE_REPLACEMENT="qquick${QUICK_INCLUDE_FILE#qdeclarative}"
    replaceMatch "\<$QUICK_INCLUDE_FILE\>" "$QUICK_INCLUDE_REPLACEMENT"
done

# Various one-off replacements
replaceMatch "\<QtDeclarative\>" "QtQml"
replaceMatch "\<asQDeclarativeContext" "asQQmlContext"

# Replace any references to the 'declarative' module with 'qml'
echo "Replacing module declarative with qml:"
CONTAINERS=$(find "$MODIFY_DIR" \( -name \*\.pro -o -name \*\.pri \) | xargs grep -l -I "\<declarative\>")
for CONTAINER in $CONTAINERS
do
    echo "    $CONTAINER"
    TMP_FILE="$CONTAINER.tmp"

    sed 's|\<declarative\>|qml|g' <"$CONTAINER" >"$TMP_FILE"
    mv "$TMP_FILE" "$CONTAINER"
done
echo

echo "Replacements complete"
exit 0