summaryrefslogtreecommitdiffstats
path: root/tools/scripts/take_snapshot.py
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2018-08-31 14:33:53 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2018-09-22 08:47:24 +0000
commit06e3d201299ab803f4dc41f35201830c74242d19 (patch)
tree2f2100c24b051876eca4849c72e13a45dd8a2c0b /tools/scripts/take_snapshot.py
parentc0419ae89fbc4fbdc58aef5b8b01ab0b45f8ff98 (diff)
Adapt to new GN submodule
Change-Id: I3980634a1029479ab944b2e03f12a02d0c77d0c1 Reviewed-by: Michal Klocek <michal.klocek@qt.io> Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io>
Diffstat (limited to 'tools/scripts/take_snapshot.py')
-rwxr-xr-xtools/scripts/take_snapshot.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/tools/scripts/take_snapshot.py b/tools/scripts/take_snapshot.py
index 0373f391b..8f841b9eb 100755
--- a/tools/scripts/take_snapshot.py
+++ b/tools/scripts/take_snapshot.py
@@ -299,6 +299,21 @@ def listFilesInCurrentRepository():
files.append(os.path.join(submodule.pathRelativeToTopMostSupermodule(), submodule_file))
return files
+def exportGn():
+ third_party_upstream_gn = os.path.join(third_party_upstream, 'gn')
+ third_party_gn = os.path.join(third_party, 'gn')
+ os.makedirs(third_party_gn);
+ print 'exporting contents of:' + third_party_upstream_gn
+ os.chdir(third_party_upstream_gn)
+ files = listFilesInCurrentRepository()
+ print 'copying files to ' + third_party_gn
+ for i in xrange(len(files)):
+ printProgress(i+1, len(files))
+ f = files[i]
+ if not isInGitBlacklist(f):
+ copyFile(f, os.path.join(third_party_gn, f))
+ print("")
+
def exportNinja():
third_party_upstream_ninja = os.path.join(third_party_upstream, 'ninja')
third_party_ninja = os.path.join(third_party, 'ninja')
@@ -352,6 +367,7 @@ if 'true' in ignore_case_setting:
clearDirectory(third_party)
+exportGn()
exportNinja()
exportChromium()