Skip to content

Commit ced2260

Browse files
committed
Preprocess: Don't include MediaWiki source into distributed archives
1 parent 87e4af4 commit ced2260

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

preprocess.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,10 @@ def rearrange_archive(root):
7777
# remove what's left
7878
shutil.rmtree(path)
7979

80+
# remove the XML source file
81+
for fn in fnmatch.filter(os.listdir(root), 'cppreference-export*.xml'):
82+
os.remove(os.path.join(root, fn))
83+
8084
def add_file_to_rename_map(rename_map, dir, fn, new_fn):
8185
path = os.path.join(dir, fn)
8286
if not os.path.isfile(path):

0 commit comments

Comments
 (0)