diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2020-06-05 14:45:20 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2020-06-05 14:47:11 +0200 |
commit | 98c1d153def2cda3293adcd6e440500730a36787 (patch) | |
tree | 4c16811e2f2240c5b15ccf416ab16a5674700a91 /bin/ptxdist | |
parent | 7a812e88e50e4de08f75ec0e69c111bf9cb88a31 (diff) | |
download | ptxdist-98c1d153def2cda3293adcd6e440500730a36787.tar.gz ptxdist-98c1d153def2cda3293adcd6e440500730a36787.tar.xz |
ptxdist: add licensecheck command for individual packages
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'bin/ptxdist')
-rwxr-xr-x | bin/ptxdist | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/bin/ptxdist b/bin/ptxdist index 72f87596f..de278a9c6 100755 --- a/bin/ptxdist +++ b/bin/ptxdist @@ -727,6 +727,7 @@ Build Actions: drop <package>.<stage> mark a stage of a package as unbuilt tags <package> try to build tags for the package urlcheck <package> check if the package URL still works + licensecheck <package> check md5sums of the package license files images build images for target system image <image> build the specified image @@ -1784,7 +1785,13 @@ EOF ;; licensecheck) check_premake_compiler && - ptxd_make_log license-check + if [ ${#} -eq 0 ]; then + ptxd_make_log license-check + else + check_if_selected "${@}" && + pkgs=( "${@/#/${STATEDIR}/}" ) && + ptxd_make_log "${pkgs[@]/%/.report}" + fi exit ;; list-packages) |