diff options
Diffstat (limited to 'build-scripts/license-verification.sh')
-rwxr-xr-x | build-scripts/license-verification.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/build-scripts/license-verification.sh b/build-scripts/license-verification.sh new file mode 100755 index 0000000..5f4ac5b --- /dev/null +++ b/build-scripts/license-verification.sh @@ -0,0 +1,15 @@ +#! /bin/bash + +groups=`grep -rni "ssh:" $1 | sed 's/^.*name="//; s/".*$//'` + +for group in $groups +do + if grep -rni "remote=" $1 | grep -Fq $group; then + if grep -Fq $group $2; then + continue + else + echo "ERROR: License mismatch between source and artifacts" + exit 1 + fi +fi +done |