src-release: fix version look up for bfd based projects

This commit is contained in:
Michael Frysinger 2013-03-22 23:16:40 +00:00
parent 724514461e
commit 74d17001b4
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2013-03-22 Mike Frysinger <vapier@gentoo.org>
* src-release (VER): Change bfd/configure.in sed to use the new
`bfd/configure --version` output.
2013-02-15 Yufeng Zhang <yufeng.zhang@arm.com>
* configure.ac: Sync with GCC repo.

View File

@ -67,7 +67,7 @@ SUPPORT_FILES = list-of-support-files-for-tool-in-question
# NOTE: No double quotes in the below. It is used within shell script
# as VER="$(VER)"
VER = ` if grep 'AM_INIT_AUTOMAKE.*BFD_VERSION' $(TOOL)/configure.in >/dev/null 2>&1; then \
sed < bfd/configure.in -n 's/AM_INIT_AUTOMAKE[^,]*, *\([^)]*\))/\1/p'; \
bfd/configure --version | sed -n -e '1s,.* ,,p'; \
elif grep AM_INIT_AUTOMAKE $(TOOL)/configure.in >/dev/null 2>&1; then \
sed < $(TOOL)/configure.in -n 's/AM_INIT_AUTOMAKE[^,]*, *\([^)]*\))/\1/p'; \
elif test -f $(TOOL)/version.in; then \