diff options
author | Simon McVittie <smcv@debian.org> | 2017-11-01 16:04:36 +0000 |
---|---|---|
committer | Simon McVittie <smcv@debian.org> | 2017-11-01 16:07:27 +0000 |
commit | 65b40d2d380109a3713035c22e37c8ee323cd566 (patch) | |
tree | 7520dc626793b029f822191ff619dac97c29410a | |
parent | 2a80d2dcf394e3934679df92349318fa4d671f0f (diff) | |
download | dbus-glib-65b40d2d380109a3713035c22e37c8ee323cd566.tar.gz |
autogen.sh: Cope with the Python rewrite of gtk-doc
gtkdoc-scan 1.26 prints its version to stderr instead of stdout.
Signed-off-by: Simon McVittie <smcv@debian.org>
-rwxr-xr-x | autogen.sh | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -75,8 +75,15 @@ version_check() { for vc_checkprog in $vc_checkprogs; do echo $ECHO_N " testing $vc_checkprog... " if $vc_checkprog --version < /dev/null > /dev/null 2>&1; then - vc_actual_version=`$vc_checkprog --version | head -n 1 | \ + vc_actual_version=`$vc_checkprog --version 2>/dev/null | head -n 1 | \ sed 's/^.*[ ]\([0-9.]*[a-z]*\).*$/\1/'` + + if [ -z "$vc_actual_version" ]; then + # In gtk-doc 1.26, gtkdoc-scan --version prints to stderr + vc_actual_version=`$vc_checkprog --version 2>&1 | head -n 1 | \ + sed 's/^.*[ ]\([0-9.]*[a-z]*\).*$/\1/'` + fi + if compare_versions $vc_min_version $vc_actual_version; then echo "found $vc_actual_version" # set variable |