Skip to content

Commit 3896d97

Browse files
committed
local-mkrelease.sh: fail the release build if the license file contains any mentions of GPL
1 parent 055a753 commit 3896d97

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

scripts/local-mkrelease.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,12 @@ function prepare_dist {
111111
echo $LONG_HEAD > $dest/COMMIT
112112

113113
cd $ROOT && $CABAL_PLAN license-report exe:matterhorn > $dest/COPYRIGHT
114+
115+
if grep -i gpl $dest/COPYRIGHT >/dev/null
116+
then
117+
echo "ERROR: $dest/COPYRIGHT indicates that one or more Matterhorn dependencies is GPL-licensed!"
118+
exit 1
119+
fi
114120
}
115121

116122
function install_tools {

0 commit comments

Comments
 (0)