mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-16 00:03:12 -04:00
Move licensecheck to external folder
This commit is contained in:
parent
4e0845b4c6
commit
4bb572f4d0
@ -3,14 +3,14 @@
|
|||||||
# This test checks that all source files correctly have license headers
|
# This test checks that all source files correctly have license headers
|
||||||
|
|
||||||
INCLUDE_EXTENSIONS="h|cpp|hpp|py|c"
|
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)
|
DIR=$(git rev-parse --show-toplevel)
|
||||||
|
|
||||||
pushd ${DIR} > /dev/null
|
pushd "${DIR}" || exit > /dev/null
|
||||||
missing=$(! { tests/code_layout/licensecheck.pl -r -i "$EXCLUDE_LIST" src & licensecheck -r -i "$EXCLUDE_LIST" python; } | grep UNKNOWN)
|
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
|
if [[ $missing ]]; then
|
||||||
echo " *** Found source files without valid license headers"
|
echo " *** Found source files without valid license headers"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user