aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/check-gplv3
blob: 881d1288dbf90a689a0f913b84ae1302346596f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash
#
# SPDX-License-Identifier: GPL-2.0-only
#
# 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