[VOL-5032] - Build and deploy voltha-system-tests for v2.12
VERSION
=======
o Bump version string to initiate a triage build for release.
makefiles/
==========
o https://github.com/opencord/onf-make
o Update to the latest version of onf-make library makefiles
to enable additional linting targets.
Change-Id: I4cdc959d616174573014bd6343825492b01e456b
diff --git a/makefiles/lint/license/license-check.sh b/makefiles/lint/license/license-check.sh
index bbf560e..1f692e9 100755
--- a/makefiles/lint/license/license-check.sh
+++ b/makefiles/lint/license/license-check.sh
@@ -49,6 +49,11 @@
# Good regex -- no false positives.
gargs+=('-e' 'Copyright[[:space:]]+[[:digit:]]{4}')
+declare -a excl=()
+excl+=('-name' '.git')
+excl+=('-o' '-name' '.venv')
+excl+=('-o' '-name' 'vst_venv')
+
while IFS= read -r -d '' path
do
if ! grep -q "${gargs[@]}" "${path}";
@@ -56,7 +61,9 @@
echo "ERROR: $path does not contain License Header"
fail_licensecheck=1
fi
-done < <(find . -name ".git" -prune -o -type f \
+done < <(find . \
+ \( "${excl[@]}" \) \
+ -prune -o -type f \
! -iname "*.png" \
! -name "*.asc" \
! -name "*.bat" \