blob: abbed0d7e58f3b11b6614b73ea0f3f86a0464f2d (
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
|
#--------------------------------------------------------------------------------------------------
# Standard modularization template
# --------------------------------
#
# The script will start execution from <QTDIR>.
#
# Available variables:
# $qtdir = <QTDIR> or where you started the modularize script from
# $basepath = path for the modularize script, and basepath for the modularization repo
# $OStype = <n> where <n> is one of 0 = Windows, 1 = Unix, 2 = Mac
#
# To execute a command:
# run("git mv foo bar") # runs command, reports error possition and dies
# runNotDie("git mv foo bar") # runs command, reports error possition, returns error code
# and continues. Use ($? >> 8) to get the real exit code.
# ensureDir("qtkernel") # Ensures that qtkernel exists and is a directory. Will create
# it if it does not exist.
#--------------------------------------------------------------------------------------------------
ensureDir("qtquick/src");
run("git mv src/declarative qtquick/src/declarative");
run("git mv src/imports qtquick/src/imports");
run("git mv imports qtquick/imports");
ensureDir("qtquick/tools");
run("git mv tools/qml qtquick/tools/qmlviewer");
run("git mv qtquick/tools/qmlviewer/qml.pro qtquick/tools/qmlviewer/qmlviewer.pro");
ensureDir("qtquick/src/plugins");
run("git mv src/plugins/qmltooling qtquick/src/plugins");
createSubdirProfile("qtquick/src/plugins");
createSubdirProfile("qtquick/src/", 1);
createSubdirProfile("qtquick/tools/");
return 1;
|