File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed File renamed without changes.
Original file line number Diff line number Diff line change 3
3
# This test checks that all source files correctly have license headers
4
4
5
5
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 )$))"
7
7
8
8
DIR=$( git rev-parse --show-toplevel)
9
9
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)
12
12
13
- popd > /dev/null
13
+ popd || exit > /dev/null
14
14
15
15
if [[ $missing ]]; then
16
16
echo " *** Found source files without valid license headers"
You can’t perform that action at this time.
0 commit comments