Currently it only prints the list of unreferenced patch directories, but the functionality could be expanded to other linting tasks as well.
Signed-off-by: Roland Hieber <[email protected]> --- bin/ptxdist | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/bin/ptxdist b/bin/ptxdist index d7bf4d5ffc5d..e9ecbf1cc3cf 100755 --- a/bin/ptxdist +++ b/bin/ptxdist @@ -1774,6 +1774,22 @@ do_images() ptxd_make_log images } + + +# +# +# +do_lint() { + local title; + + check_premake_compiler && + title="Unreferenced patch directories:\n" && + ptxd_find_old_patchdirs | while read line; do + echo -e "${title} - ${line}" + title="" + done +} + ################################################################## ################ normal option parser ############################ ################################################################## @@ -2011,6 +2027,10 @@ EOF ptxd_make_log "${images[@]}" exit ;; + lint) + do_lint + exit + ;; list-packages) check_config && check_deps || return -- 2.20.1 _______________________________________________ ptxdist mailing list [email protected]
