public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Martin Liska <marxin@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc(refs/users/marxin/heads/revert-sphinx-v2)] Revert "docs: create sources tarball" Date: Mon, 14 Nov 2022 03:05:26 +0000 (GMT) [thread overview] Message-ID: <20221114030531.62BE538518A1@sourceware.org> (raw) https://gcc.gnu.org/g:a946bfc559cbf836c399d3b290934cfb0415b5ed commit a946bfc559cbf836c399d3b290934cfb0415b5ed Author: Martin Liska <mliska@suse.cz> 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()
reply other threads:[~2022-11-14 3:05 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20221114030531.62BE538518A1@sourceware.org \ --to=marxin@gcc.gnu.org \ --cc=gcc-cvs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).