gerrit/tools
Philipp Wollermann cb4b1e3a8b Use the system default version of Python to run Documentation scripts.
They work fine with Python 2.7 and Python 3.5 anyway and some systems do not
have a "python2" binary (e.g. macOS). This will fix the Gerrit CI build on
Bazel's CI, which is currently failing with:

ERROR: /Users/buildkite/builds/buildkite-macpro-7-1/bazel-downstream-projects/gerrit/Documentation/BUILD:94:1: Couldn't build file Documentation/pg-plugin-endpoints.txt.html_htmlonly_expn: error executing shell command: '.html_htmlonly_expn' failed (Exit 127)
env: python2: No such file or directory

I tested this change like this:

# Build with Python 2 to ensure my local setup is fine.
bazel build //Documentation/...
# Works fine.

# Now build with Python 3 instead, to ensure compatibility.
sed -i 's/python2/python3/g' Documentation/replace_macros.py \
    tools/bzl/license.bzl
bazel clean
bazel build //Documentation/...
# Works fine, too.

Thus we can safely change "python2" to "python" and let the scripts run with
the system default version.

Change-Id: I107b76bc71e9b42101d57f94ab7c54c90e7c74cb
2018-03-23 09:31:44 +00:00
..
bzl Use the system default version of Python to run Documentation scripts. 2018-03-23 09:31:44 +00:00
eclipse Merge branch 'stable-2.15' 2018-03-12 09:03:47 +09:00
intellij Update documentation of code style settings for IntelliJ 2017-03-02 11:58:36 +01:00
js Merge branch 'stable-2.14' into stable-2.15 2018-03-08 21:07:26 +09:00
maven Merge branch 'stable-2.15' 2018-02-08 17:30:40 +09:00
util Don't hardcode bash location 2015-08-26 09:03:24 -06:00
__init__.py Buck: Adjust to unflattened directory structure for python libraries 2013-11-30 20:19:33 +01:00
bazel.rc Add transpilation to PolyGerrit 2017-05-15 17:00:01 +09:00
BUILD Bazel: Reformat build files 2016-12-07 11:33:07 +00:00
coverage.sh Dissolve gerrit-common top-level directory 2017-10-31 11:02:36 -04:00
download_file.py Move downloaded artifact cache from buck-cache to bazel-cache 2018-02-07 15:54:30 +00:00
jgit-snapshot-deploy-pom.diff Provide a diff file to make it easier to deploy JGit snapshot 2016-08-31 11:13:47 +09:00
merge_jars.py Merge branch 'stable-2.14' into stable-2.15 2018-03-08 21:07:26 +09:00
release-announcement-template.txt Add "?no-merges" to log link in release announcement template 2017-10-12 09:46:46 +09:00
release-announcement.py release-announcement: support older version of python-gnupg 2018-02-27 16:57:03 +09:00
setup_gjf.sh setup_gjf.sh: Add support for multiple version 2018-01-27 23:12:12 +01:00
util_test.py tools: use python on path 2015-06-18 17:10:11 +02:00
util.py Remove unused imports in Python scripts 2016-10-19 12:19:54 +09:00
version.py Move pom.xml files to tools/maven 2017-10-10 09:31:44 -04:00
workspace-status.cmd Bazel: Add workspace-status-command script for other platform 2017-10-25 16:14:00 +00:00
workspace-status.sh Specify "unknown" if version generation for plugins fails. 2017-10-01 09:50:46 +01:00