From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1851) id 62BE538518A1; Mon, 14 Nov 2022 03:05:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 62BE538518A1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1668395131; bh=3afLF01MRaWca9s0SX7M3LT5IVG+AclNHA+I5vf7nxI=; h=From:To:Subject:Date:From; b=ILzVnnKRIIU2dVWm8vHeCMD0OHTtlptP6gqjnfEeu+ggAoJHIlzcnOQIcSGO2/3Lo kDalNNQNlhGuUzjQSpi3IYkiiGqac47U4fBuQgHO8NqxqHe8iCVwTdZDstT7T5cazz ZMr6hr4vCpf/3ZfR/kJJtQ6zmJaRw/xR83N3sPVU= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Martin Liska To: gcc-cvs@gcc.gnu.org Subject: [gcc(refs/users/marxin/heads/revert-sphinx-v2)] Revert "docs: create sources tarball" X-Act-Checkin: gcc X-Git-Author: Martin Liska X-Git-Refname: refs/users/marxin/heads/revert-sphinx-v2 X-Git-Oldrev: c1200db16d2d37964f1723d980b7f9c8cca5c8e6 X-Git-Newrev: a946bfc559cbf836c399d3b290934cfb0415b5ed Message-Id: <20221114030531.62BE538518A1@sourceware.org> Date: Mon, 14 Nov 2022 03:05:26 +0000 (GMT) List-Id: https://gcc.gnu.org/g:a946bfc559cbf836c399d3b290934cfb0415b5ed commit a946bfc559cbf836c399d3b290934cfb0415b5ed Author: Martin Liska Date: Sun Nov 13 21:56:51 2022 +0100 Revert "docs: create sources tarball" This reverts commit 52eedc1fa3d211f29196eed60e11e6a8738329c2. Diff: --- maintainer-scripts/update_web_docs_git.py | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/maintainer-scripts/update_web_docs_git.py b/maintainer-scripts/update_web_docs_git.py index d9cf9b70968..18c8bbb8324 100755 --- a/maintainer-scripts/update_web_docs_git.py +++ b/maintainer-scripts/update_web_docs_git.py @@ -37,32 +37,6 @@ def find_configs(): yield (Path(root).resolve(), docname) -def create_source_tarball(output, configs): - pwd = Path('.').resolve() - subfolders = {'doc'} - explicit_files = {'gcc/BASE-VER', 'gcc/DEV-PHASE', 'gcc/DATESTAMP'} - - for location, _ in configs: - location = location.relative_to(pwd) - while not location.name == 'doc': - location = location.parent - subfolders.add(location) - - sources = Path('sources') - sources.mkdir() - - # Copy all subfolders and files - for subfolder in subfolders: - shutil.copytree(subfolder, sources / subfolder) - - for filename in explicit_files: - shutil.copy(filename, sources / filename) - - shutil.make_archive(Path(output, 'docs-sources'), 'gztar', - sources) - print('sources tarball has been created') - - with tempfile.TemporaryDirectory() as folder: print(f'Using {folder} as temporary directory') os.chdir(folder) @@ -75,9 +49,6 @@ with tempfile.TemporaryDirectory() as folder: if not output.exists(): output.mkdir() - # Create source tarball - create_source_tarball(output, configs) - temp = Path('tmp').resolve() temp.mkdir()