aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/check-gplv3
blob: 998d867181843e1e3017e9155eb8747417ed22a9 (plain)
1
2
3
4
5
6
7
8
9
#!/bin/bash
# Called within the build directory
for x in `find ./tmp/deploy/licenses -name "license.manifest"`; do cat $x|grep -E "GPLv3|GPL-3"; done | grep -v '|'
if [ $? = 1 ]; then
    echo "GPLv3 components not found"
    exit 0
fi
echo "GPLv3 components found"
exit 1