summaryrefslogtreecommitdiffstats
path: root/scripts/100_qt3support
blob: 6ea79c0b1767f43fe5e82c995b97b3acf13f56ac (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
#--------------------------------------------------------------------------------------------------
# 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("qtbase")        # Ensures that qtbase exists and is a directory. Will create
#                                    it if it does not exist.
#--------------------------------------------------------------------------------------------------

ensureDir("qt3support/src/tools");
ensureDir("qt3support/src/plugins");
ensureDir("qt3support/tools");
run("git mv src/qt3support qt3support/src/qt3support");
run("git mv qtbase/src/plugins/accessible/compat qt3support/src/plugins/accessible");
run("git mv src/tools/uic3 qt3support/src/tools/uic3");
run("git mv tools/porting qt3support/tools/");

createSubdirProfile("qt3support/src/");
createSubdirProfile("qt3support/src/tools");
createSubdirProfile("qt3support/src/plugins");
createSubdirProfile("qt3support/tools");

return 1;