adjust src-release following the renaming of gdb/common/ to gdb/gdbsupport/
authorJoel Brobecker <brobecker@adacore.com>
Sun, 14 Jul 2019 01:00:32 +0000 (18:00 -0700)
committerJoel Brobecker <brobecker@adacore.com>
Sun, 14 Jul 2019 01:00:32 +0000 (18:00 -0700)
commit48b550c28afd21b382e21e56b7ba246b3bf49d4b
tree6919a5ba66ca569a816dc5c006158522c0534919
parenta48654b6d4ed558d632dca3d895e8ad2f0dd57a6
adjust src-release following the renaming of gdb/common/ to gdb/gdbsupport/

A recent change renamed the common/ directory into gdbsupport/ in gdb.
This causes problems in the getver function in the src-release script
which doesn't find the create-version.sh script anymore. As a result,
it falls back on using the version.in file verbatim, meaning that
the "DATE" placeholder doesn't get replaced with the snapshot date,
and the "-git" suffix doesn't get stripped. More precisely, we get
snapshots called "gdb-8.3.50-DATE-git.tar" instead of (e.g.)
"gdb-8.3-20190712.tar".

This commit fixes the issue by adding support for this situation.
I left the support for $tool/common/create-version.sh, because
the sim still uses that directory structure.

ChangeLog:

        * src-release (getver): If $tool/gdbsupport/create-version.sh
        exists, use that to determine the version number.
ChangeLog
src-release.sh
This page took 0.024479 seconds and 4 git commands to generate.