180cc6aeda
We have python scripts in the tools/ dir the vast majority of which we run regularly with python3 via our python3 default basepython in tox. However, most of these use a `python` shebang line which can be confusing as to whether or not these scripts run under python3 or not. To make this more clear set them to python3. I've confirmed the scripts running under tox are happy with these changes. For the ones that don't run under tox I've done a quick review and they look happy too. Change-Id: I983d23c33f7780e5708aa728c829c3262fc99ea0
21 lines
481 B
Bash
Executable File
21 lines
481 B
Bash
Executable File
#!/bin/bash -xe
|
|
|
|
|
|
GITHEAD=$(git rev-parse HEAD)
|
|
GITBRANCH=$(git rev-parse --abbrev-ref HEAD)
|
|
|
|
# Check out previous version
|
|
git checkout HEAD~1
|
|
|
|
cp gerrit/projects.yaml gerrit/projects-old.yaml
|
|
|
|
# Back to current version. Otherwise the
|
|
# check_gerrit_projects_changed.py invocation might be an old version.
|
|
git checkout $GITHEAD
|
|
|
|
python3 tools/check_gerrit_projects_changed.py gerrit/projects-old.yaml \
|
|
gerrit/projects.yaml
|
|
|
|
rm gerrit/projects-old.yaml
|
|
git checkout $GITBRANCH
|