aboutsummaryrefslogtreecommitdiff
path: root/maintainer-scripts
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2022-11-09 11:51:34 +0100
committerMartin Liska <mliska@suse.cz>2022-11-09 11:52:13 +0100
commit8d7a55b7f4ce37ecc869bd31cadc3f9e059e2f44 (patch)
tree5680052e77fe81785b9e33530b8339aa28a57aa0 /maintainer-scripts
parent05119c345797bc04cc34e6973ebd921b4dcb0326 (diff)
downloadgcc-8d7a55b7f4ce37ecc869bd31cadc3f9e059e2f44.zip
gcc-8d7a55b7f4ce37ecc869bd31cadc3f9e059e2f44.tar.gz
gcc-8d7a55b7f4ce37ecc869bd31cadc3f9e059e2f44.tar.bz2
sphinx: simplify default in baseconf.py.
ChangeLog: * doc/baseconf.py: Simplify BUGURL and VERSION_PACKAGE, provide a default. maintainer-scripts/ChangeLog: * update_web_docs_git.py: Simplify.
Diffstat (limited to 'maintainer-scripts')
-rwxr-xr-xmaintainer-scripts/update_web_docs_git.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/maintainer-scripts/update_web_docs_git.py b/maintainer-scripts/update_web_docs_git.py
index f3f5995..18c8bbb 100755
--- a/maintainer-scripts/update_web_docs_git.py
+++ b/maintainer-scripts/update_web_docs_git.py
@@ -10,7 +10,6 @@ import tempfile
from pathlib import Path
GITROOT = '/git/gcc.git'
-BUGURL = 'https://gcc.gnu.org/bugs/'
parser = argparse.ArgumentParser(description='Update web documentation.')
parser.add_argument('output_folder', help='Output folder')
@@ -53,10 +52,6 @@ with tempfile.TemporaryDirectory() as folder:
temp = Path('tmp').resolve()
temp.mkdir()
- # Prepare default env. variables
- childenv = os.environ.copy()
- childenv['BUGURL'] = BUGURL
-
# Build and copy the documentation
for i, (config_folder, docname) in enumerate(sorted(configs)):
print(f'=== building {i + 1}/{len(configs)}: {docname} ===')
@@ -65,7 +60,7 @@ with tempfile.TemporaryDirectory() as folder:
cmd = f'make -C doc html SOURCEDIR={config_folder} BUILDDIR={temp}/{docname}'
if args.sphinx_build:
cmd += f' SPHINXBUILD={args.sphinx_build}'
- subprocess.run(cmd, shell=True, env=childenv, check=True,
+ subprocess.run(cmd, shell=True, check=True,
capture_output=not args.verbose)
os.unlink(f'{temp}/{docname}/html/.buildinfo')
shutil.copytree(f'{temp}/{docname}/html', f'{output}/{docname}',
@@ -75,7 +70,7 @@ with tempfile.TemporaryDirectory() as folder:
cmd = f'make -C doc latexpdf SOURCEDIR={config_folder} BUILDDIR={temp}/pdf/{docname}'
if args.sphinx_build:
cmd += f' SPHINXBUILD={args.sphinx_build}'
- subprocess.run(cmd, shell=True, env=childenv, check=True,
+ subprocess.run(cmd, shell=True, check=True,
capture_output=not args.verbose)
shutil.copyfile(f'{temp}/pdf/{docname}/latex/{docname}.pdf',
f'{output}/{docname}.pdf')