diff --git a/ChangeLog b/ChangeLog index 582d1f27704..3b835d0c090 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2020-01-28 Sergio Durigan Junior + + * src-release.sh (getver): Look for gdbsupport's + create-version.sh script at the current directory if tool is + "gdb". + 2020-01-19 Simon Marchi * remote-sim.c (gdbsim_target::wait): Return diff --git a/src-release.sh b/src-release.sh index 92e92ac5d77..1de971eb01a 100755 --- a/src-release.sh +++ b/src-release.sh @@ -61,8 +61,8 @@ getver() $tool/common/create-version.sh $tool 'dummy-host' 'dummy-target' VER.tmp cat VER.tmp | grep 'version\[\]' | sed 's/.*"\([^"]*\)".*/\1/' | sed 's/-git$//' rm -f VER.tmp - elif test -f $tool/gdbsupport/create-version.sh; then - $tool/gdbsupport/create-version.sh $tool 'dummy-host' 'dummy-target' VER.tmp + elif test $tool = "gdb"; then + ./gdbsupport/create-version.sh $tool 'dummy-host' 'dummy-target' VER.tmp cat VER.tmp | grep 'version\[\]' | sed 's/.*"\([^"]*\)".*/\1/' | sed 's/-git$//' rm -f VER.tmp elif test -f $tool/version.in; then