Skip to content

Commit

Permalink
CI: Enforce writing licenses inside source files (#410)
Browse files Browse the repository at this point in the history
  • Loading branch information
ofriedma authored and udi-speedb committed Nov 13, 2023
1 parent 21b8fe2 commit 0cc5886
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions build_tools/check-sources.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ if [ "$?" != "1" ]; then
BAD=1
fi

git grep -Li -E "license|copyright" -- ':*speed*.cc' ':*spdb*.h' ':*speed*.h' ':*spdb*.cc'
if [ "$?" != "1" ]; then
echo '^^^^ Source files do not contain license'
BAD=1
fi

if [ "$BAD" ]; then
exit 1
fi

0 comments on commit 0cc5886

Please sign in to comment.