pkg-generic.mk: strip leading/trailing spaces
authorPeter Korsgaard <peter@korsgaard.com>
Sun, 12 Oct 2014 14:18:33 +0000 (16:18 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Sun, 12 Oct 2014 14:18:33 +0000 (16:18 +0200)
commit2f0748578166a4717bbbb941cf768f4dca75e971
tree9d6ec2aaae72838bf30e7fc45d7e1b759084c439
parent2b581cc04f3b106928f3d0c3b7fb6c44e50c8a61
pkg-generic.mk: strip leading/trailing spaces

The manual gives this example for using the github macro:

  FOO_VERSION = v1.0 # tag or full commit ID

Unfortunately, people copy/pasting this example will face weird make errors,
because it leads the FOO_VERSION variable to end with a space.  Similar
problems can happen when testing a version bump or similar, so strip
leading/trailing spaces before the version is used to construct the build
directory path.

Reported-by: Edd Robbins <edd.robbins@gmail.com>
Cc: Edd Robbins <edd.robbins@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/pkg-generic.mk