Move licensecheck to external folder

This commit is contained in:
Nyall Dawson 2018-06-04 09:09:54 +10:00
parent 4e0845b4c6
commit 4bb572f4d0
2 changed files with 4 additions and 4 deletions

View File

@ -3,14 +3,14 @@
# This test checks that all source files correctly have license headers
INCLUDE_EXTENSIONS="h|cpp|hpp|py|c"
EXCLUDE_LIST="(.*\/(qtermwidget)\/|ui_defaults\\.h|CREDITS|TODO|README|URI|^[^.]*$|.*\\.(?!($INCLUDE_EXTENSIONS)$))"
EXCLUDE_LIST="(.*\\/(qtermwidget)\\/|ui_defaults\\.h|CREDITS|TODO|README|URI|^[^.]*$|.*\\.(?!($INCLUDE_EXTENSIONS)$))"
DIR=$(git rev-parse --show-toplevel)
pushd ${DIR} > /dev/null
missing=$(! { tests/code_layout/licensecheck.pl -r -i "$EXCLUDE_LIST" src & licensecheck -r -i "$EXCLUDE_LIST" python; } | grep UNKNOWN)
pushd "${DIR}" || exit > /dev/null
missing=$(! { external/licensecheck/licensecheck.pl -r -i "$EXCLUDE_LIST" src & licensecheck -r -i "$EXCLUDE_LIST" python; } | grep UNKNOWN)
popd > /dev/null
popd || exit > /dev/null
if [[ $missing ]]; then
echo " *** Found source files without valid license headers"