pkg-utils.mk: legal-license-file: handle multiple license files with same name
authorPeter Korsgaard <jacmet@sunsite.dk>
Wed, 5 Jun 2013 08:52:18 +0000 (10:52 +0200)
committerPeter Korsgaard <jacmet@sunsite.dk>
Wed, 5 Jun 2013 08:58:40 +0000 (10:58 +0200)
commit31aa4264d8839d05684e67a238837e8633d1e1bc
tree6514b5561369a8cbe77381599d46ea88c416d5f0
parenta13afc11456e38ccbb49d3e70297118e8e9f8cae
pkg-utils.mk: legal-license-file: handle multiple license files with same name

Some packages (kmod, e2fsprogs, ..) contain multiple (different) license
files with the same file name, but in different directories.

These are currently all copied to the same filename in
output/legal-info/licenses/<pkg>, overwriting everything but the last file.

Fix it by recreating the same directory structure under legal-info.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/pkg-utils.mk