-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed license header on TestFiles and added check-headers.sh shell sc…
…ript.
- Loading branch information
Colby Skeggs
committed
May 12, 2015
1 parent
ab80071
commit 8876f53
Showing
2 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
CommonChickenRuntimeEngine/src/ccre/testing/TestFiles.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
echo | ||
echo Enumerating files... | ||
echo | ||
GOOD=true | ||
for x in `find -name '*.java'` | ||
do | ||
if head -n 18 $x | grep -iE '(This file is part of the CCRE, the Common Chicken Runtime Engine[.]|Copyright \(c\) FIRST)' >/dev/null | ||
then | ||
true | ||
else | ||
if echo $x | grep -iE '(SampleIgneousRobot|cobertura|TemplateIgneousRobot)' >/dev/null | ||
then | ||
true | ||
else | ||
echo $x BAD | ||
GOOD=false | ||
fi | ||
fi | ||
done | ||
echo | ||
if $GOOD | ||
then | ||
echo Done enumerating. All files pass inspection. | ||
echo | ||
exit 0 | ||
else | ||
echo Done enumerating. Not ready to commit. You forgot some license headers! | ||
echo | ||
exit 1 | ||
fi |