summaryrefslogtreecommitdiffstats
path: root/scripts/050_script
blob: bd4aa0de3f8b5cf94efa3c218656f6a0a2203c14 (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
#--------------------------------------------------------------------------------------------------
# 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("qtscript/src/plugins");
ensureDir("qtscript/tools");
run("git mv src/script qtscript/src/script");
run("git mv src/scripttools qtscript/src/scripttools");
run("git mv qtbase/src/plugins/script qtscript/src/plugins/script");
ensureDir("qtscript/src/3rdparty");
run("git mv src/3rdparty/javascriptcore qtscript/src/3rdparty/javascriptcore");

createSubdirProfile("qtscript/src/", 1);

return 1;