diff --git a/tools/apertis-pkg-merge-local b/tools/apertis-pkg-merge-local index e615b71deebade1205a394e61402d8aeae98019c..ef3ac1d1630e29b29d9c6dcf986b1762954a52dd 100755 --- a/tools/apertis-pkg-merge-local +++ b/tools/apertis-pkg-merge-local @@ -67,6 +67,21 @@ diff_old() { git diff $EXTRA_ARGS origin/$UPSTREAM_BRANCH_OLD origin/$DOWNSTREAM_BRANCH_OLD ':(exclude)debian/apertis' ':(exclude)debian/changelog' } +scan() { + if grep -q target debian/apertis/component + then + ci-license-scan --blacklist-licenses "GPL-3 GPL-3+ AGPL-3 AGPL-3+ AGPL-1 AGPL-1+ LGPL-3 LGPL-3+ BSD-4-Clause MPL-1.1" --fail-on-unknown --propose-whitelist + else + echo "Package does no belong to target, skipping" + fi +} + +commit-whitelist() { + git add debian/apertis/copyright.whitelist + + git commit -s -e -m 'copyright.whitelist: Update configuration' +} + release() { dch --force-distribution --distribution apertis --local +apertis --upstream Rebase on top of $UPSTREAM_BRANCH git add debian/changelog @@ -92,11 +107,17 @@ diff) diff_old) diff_old ;; +scan) + scan + ;; +commit-whitelist) + commit-whitelist + ;; release) release ;; *) echo Unknown command - echo Usage `basename $0` '[merge|diff|diff_old|release]' + echo Usage `basename $0` '[merge|diff|diff_old|scan|commit-whitelist|release]' ;; esac