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
|
#--------------------------------------------------------------------------------------------------
# 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("qtbase/util");
# harfbuzz is in qtbase, and its relative location has not even moved
run("git mv util/harfbuzz qtbase/util/");
# Some code generator
run("git mv util/unicode qtbase/util/");
run("git mv util/local_database qtbase/util/");
run("git mv util/lexgen qtbase/util/"); # generates the cssparser
run("git mv util/xkbdatagen qtbase/util/"); # generates qkeymapper_x11_p.cpp
run("git mv util/network qtbase/util/"); # generates content for qtbase/src/network/access/qnetworkcookiejartlds_p.h
run("git mv util/integrity qtbase/util/"); # used for Qt on Integrity
run("git mv util/plugintest qtbase/util/"); # reports error string for failed plugin loading
#i know s60theme requires webkit, but it belongs there i think
run("git mv util/s60theme qtbase/util/");
run("git mv util/s60pixelmetrics qtbase/util/");
# scripts/make_qfeatures_dot_h belongs into qtbase
# scripts/unix_to_dos not really, but i'm lazy
run("git mv util/scripts qtbase/util/");
ensureDir("qtscript/util");
run("git mv util/webkit/mkdist-javascriptcore qtscript/util/");
run("git rm -fq util/webkit/mkdist-webkit");
ensureDir("qtrepotools/util");
run("git mv util/fixnonlatin1 qtrepotools/util/");
run("git mv util/normalize qtrepotools/util/");
# qlalr
# this tools is used to generate QXmlStreamReader parser, in qt base,
# QMLJS parser in both declarative module and qt creator,
# the old qtscript classing parser, and some third party parser such as qjsonparser
ensureDir("qlalr");
run("git mv util/qlalr/examples qlalr/");
run("git mv util/qlalr/doc qlalr/");
run("git rm util/qlalr/README");
run("git mv util/qlalr qlalr/src");
run("git mv qlalr/src/qlalr.pro qlalr/src/src.pro");
open PRO, ">qlalr/qlalr.pro" || die "Could not open qlalr/qlalr.pro for writing!\n";
print PRO "TEMPLATE = subdirs \n";
print PRO "SUBDIRS = src\n";
close PRO;
run("git add qlalr/qlalr.pro");
# plugintest -> move to manualtests??
run("git rm -r util/gencmap");
return 1;
|