Skip to content

Commit 4bb572f

Browse files
committed
Move licensecheck to external folder
1 parent 4e0845b commit 4bb572f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed
File renamed without changes.

tests/code_layout/test_licenses.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
# This test checks that all source files correctly have license headers
44

55
INCLUDE_EXTENSIONS="h|cpp|hpp|py|c"
6-
EXCLUDE_LIST="(.*\/(qtermwidget)\/|ui_defaults\\.h|CREDITS|TODO|README|URI|^[^.]*$|.*\\.(?!($INCLUDE_EXTENSIONS)$))"
6+
EXCLUDE_LIST="(.*\\/(qtermwidget)\\/|ui_defaults\\.h|CREDITS|TODO|README|URI|^[^.]*$|.*\\.(?!($INCLUDE_EXTENSIONS)$))"
77

88
DIR=$(git rev-parse --show-toplevel)
99

10-
pushd ${DIR} > /dev/null
11-
missing=$(! { tests/code_layout/licensecheck.pl -r -i "$EXCLUDE_LIST" src & licensecheck -r -i "$EXCLUDE_LIST" python; } | grep UNKNOWN)
10+
pushd "${DIR}" || exit > /dev/null
11+
missing=$(! { external/licensecheck/licensecheck.pl -r -i "$EXCLUDE_LIST" src & licensecheck -r -i "$EXCLUDE_LIST" python; } | grep UNKNOWN)
1212

13-
popd > /dev/null
13+
popd || exit > /dev/null
1414

1515
if [[ $missing ]]; then
1616
echo " *** Found source files without valid license headers"

0 commit comments

Comments
 (0)