core/legal-info: don't require overriding _LICENSE
authorYann E. MORIN <yann.morin.1998@free.fr>
Sat, 26 Oct 2019 08:45:53 +0000 (10:45 +0200)
committerArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Sun, 27 Oct 2019 09:35:06 +0000 (10:35 +0100)
commit4e39730e443d79a3d441027d82bb9c17373d3a0d
tree75a57c1bfcbcb684fc12eafba4ee7a5b4c8e5884
parent027c02660b8cd670eff0ba6fdd9e49253968517f
core/legal-info: don't require overriding _LICENSE

Currently, the formatting we impose on the _LICENSE variable requires
that we also use the rarely used := assignment operator, which makes
the _LICENSE variable the only variable that users have to write with
this operator.

This really departs from the simplicity and consistency of using the
append-assignment, which we use for every other variable.

This is because the append-assignment operator surreptiously
introduces a space between the original value and the appended one. But
we can use this knowledge, to match any instance of a space followed by
a comma, and turn it into a single comma.

This allows users to now have a consistent use of the '=' and '+='
operators we use everywhere else in .mk files.

Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
docs/manual/adding-packages-generic.txt
package/pkg-generic.mk