create-recipe: update re pattern and output
authorKang Kai <kai.kang@windriver.com>
Thu, 1 Nov 2012 02:44:56 +0000 (10:44 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 2 Nov 2012 16:18:30 +0000 (16:18 +0000)
commita2f5728d0b5b7f175b336fec7c2c6dc2be78af22
treeb223beaecdf0eee482a18a40e82872c8fcc5e0db
parent177144c230925ca70fdb60faa596d27732a7d652
create-recipe: update re pattern and output

In the URL, there may be more than just digits in the version section,
something like xz 5.1.2alpha. Update RE pattern to catch all the string
after package name and before '.tar' in URL as package version.

And error message which has been sent to /dev/null still shows on Ubuntu
12.10 with perl 5.14. Update the way to find source tar file to eraser
the error message.

configure files may rewrite the version section, and that is not necessary.
Test when version section has been set, omit the version value from
configure files.

And tweak for output to bb file.

(From OE-Core rev: 17f09ab713acc814ec0561b1c41fa87d9bf7b83f)

Signed-off-by: Kang Kai <kai.kang@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/create-recipe