Skip to content

Commit

Permalink
Move licensecheck to external folder
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jun 4, 2018
1 parent 4e0845b commit 4bb572f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
File renamed without changes.
8 changes: 4 additions & 4 deletions tests/code_layout/test_licenses.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 4bb572f

Please sign in to comment.