yocto-autobuilder-helper/scripts/check-gplv3
Richard Purdie 59607f3a19 Add gplv3 check from existing AB code
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-02-28 17:37:04 +00:00

272 B
Executable File

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