From 4bd251a6d9dd55608faae5abc945fc6646ce7e0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Fri, 15 Sep 2017 22:19:11 +0200 Subject: [PATCH] daca2: skip docs and examples.. that might be garbage --- tools/daca2.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/daca2.py b/tools/daca2.py index a84120c22..97cd1bb00 100644 --- a/tools/daca2.py +++ b/tools/daca2.py @@ -108,6 +108,9 @@ def removeLargeFiles(path): # Remove test code if g.endswith('/testsuite') or g.endswith('/clang/INPUTS'): shutil.rmtree(g, onerror=handleRemoveReadonly) + # Remove docs and examples ... that might be garbage + elif g.endswith('/doc') or g.endswith('/examples'): + shutil.rmtree(g, onerror=handleRemoveReadonly) else: removeLargeFiles(g + '/') elif os.path.isfile(g) and g[-4:] != '.txt':