yocto-autobuilder-helper/scripts/check-gplv3
Richard Purdie 8702fdbb72 Clarify license and copyright information
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-05-17 10:29:45 +01:00

12 lines
316 B
Bash
Executable File

#!/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