bootstrap: AC_INIT may have more than four parameters
authorEric Blake <eblake@redhat.com>
Wed, 8 May 2013 20:29:19 +0000 (14:29 -0600)
committerEric Blake <eblake@redhat.com>
Wed, 8 May 2013 20:43:02 +0000 (14:43 -0600)
commit0f8ddbf1a13a93a4584afdd82f0f87e498a0db6f
tree6986ccf04b1a8a5a7b7dba758b5eae8bca4d57c7
parent628b80f57eeb9a928fe9cbb5687b990e43c945f4
bootstrap: AC_INIT may have more than four parameters

For packages that did
  AC_INIT([package], [version], [bug-report], [], [url])
the extraction script was grabbing url instead of package for the
value of $package.

Furthermore, while we guarantee LC_ALL=C, this code is liable to
be copied and pasted to a script that doesn't use the C locale and
thus where a range expression may misbehave.

* build-aux/bootstrap (extract_package_name): Correctly extract
non-empty tarname field.  Avoid range in regex.
Based on a report by Sami Kerola <kerolasa@iki.fi>.

Signed-off-by: Eric Blake <eblake@redhat.com>
ChangeLog
build-aux/bootstrap