diff options
author | Nick Mathewson <nickm@torproject.org> | 2020-08-11 12:37:08 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2020-08-11 12:37:08 -0400 |
commit | da9684d89a7b0de39c142c4273646cd972b45437 (patch) | |
tree | 5399c81fba8e3b5b6795ce29b08e01ec4210aa79 /scripts | |
parent | e4ef3c61f7fd718da94deace0b67950c6f788859 (diff) | |
parent | 2b968446d9c0634a6fb3305a10879b4f29684877 (diff) | |
download | tor-da9684d89a7b0de39c142c4273646cd972b45437.tar.gz tor-da9684d89a7b0de39c142c4273646cd972b45437.zip |
Merge branch 'maint-0.4.4'
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/ci/ci-driver.sh | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/scripts/ci/ci-driver.sh b/scripts/ci/ci-driver.sh index a675335115..ad08ee5af0 100755 --- a/scripts/ci/ci-driver.sh +++ b/scripts/ci/ci-driver.sh @@ -256,7 +256,9 @@ fi # Tell the user about our versions of different tools and packages. uname -a +printf "python: " python -V || echo "no 'python' binary." +printf "python3: " python3 -V || echo "no 'python3' binary." show_git_version Tor "${CI_SRCDIR}" @@ -268,6 +270,29 @@ if [[ "${CHUTNEY}" = "yes" ]]; then fi ############################################################################# +# Determine the version of Tor. + +TOR_VERSION=$(grep -m 1 AC_INIT configure.ac | sed -e 's/.*\[//; s/\].*//;') + +# Use variables like these when we need to behave differently depending on +# Tor version. Only create the variables we need. +TOR_VER_AT_LEAST_043=no + +# These are the currently supported Tor versions; no need to work with anything +# ancient in this script. +case "$TOR_VERSION" in + 0.3.*) + TOR_VER_AT_LEAST_043=no + ;; + 0.4.[012].*) + TOR_VER_AT_LEAST_043=no + ;; + *) + TOR_VER_AT_LEAST_043=yes + ;; +esac + +############################################################################# # Make sure the directories are all there. # Make sure CI_SRCDIR exists and has a file we expect. @@ -362,7 +387,7 @@ fi FAILED_TESTS="" -if [[ "${DOXYGEN}" = 'yes' ]]; then +if [[ "${DOXYGEN}" = 'yes' && "${TOR_VER_AT_LEAST_043}" = 'yes' ]]; then start_section Doxygen if runcmd make doxygen; then hooray "make doxygen has succeeded." |