#!/usr/bin/python3 # Look for CXX files that are not referenced by any makefile import subprocess sourceFiles = set() a = subprocess.Popen("git ls-files", stdout=subprocess.PIPE, shell=True, encoding='utf8') with a.stdout as txt: for filename in txt: if filename.find(".cxx") != -1 \ and filename.find("precompiled") == -1 \ and filename.find("/workben") == -1 \ and not filename.startswith("odk/examples/") \ and not filename.startswith("bridges/") \ and not filename.startswith("compilerplugins/") \ and filename.find("/qa/") == -1 \ and filename.find("/test/") == -1 \ and not filename.startswith("testtools/") \ and not filename.startswith("vcl/") \ and not filename.startswith("cli_ure/"): sourceFiles.add(filename.strip()) a = subprocess.Popen("git ls-files */*.mk", stdout=subprocess.PIPE, shell=True, encoding='utf8') with a.stdout as txt: for makefilename in txt: makefilename = makefilename.strip() with open(makefilename, "r") as makefile: moduleName = makefilename[:makefilename.find("/")] state = 0 for line in makefile: line = line.strip() if state == 0 and "_add_exception_objects" in line: state = 1 elif state == 1 and line != "))": s = line.replace("\\","").replace(")", "").strip() # parse line like: $(call gb_Helper_optional,AVMEDIA,svx/source/sidebar/media/MediaPlaybackPanel) \ idx = s.rfind(",") if idx != -1: s = s[idx+1:].strip() sourceFiles.discard(s + ".cxx") elif state == 1: state = 0 print("files not listed in makefile") print("----------------------------") for x in sorted(sourceFiles): print(x) d-5.3'>distro/collabora/cd-5.3 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorAndrea Gelmini <andrea.gelmini@gelma.net>2024-12-02 16:23:14 +0100
committerJulien Nabet <serval2412@yahoo.fr>2024-12-05 16:03:34 +0100
commitc68d4501b9607536352e84d36066ec27e9471e7f (patch)
treeb3da0b7c9f119ee41b73aa9d2094b2606f227bbd /cui
parent55e77a48fbafd47036d7bd3ba11579c5f15f2359 (diff)
Fix typo
Change-Id: I8d9daaf14829e20dfd16817dcb7b90c18fb78939 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177703 Tested-by: Jenkins Reviewed-by: Simon Chenery <simon_chenery@yahoo.com> Reviewed-by: Julien Nabet <serval2412@yahoo.fr>