mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-10 15:20:56 +00:00
Fit better in with Jenkins
This commit is contained in:
parent
c9492e54f7
commit
cb5548ceb8
@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
missing-authors() {
|
missing-authors() {
|
||||||
for email in $(git log --format=%ae master | sort | uniq) ; do
|
for email in $(git log --format=%ae HEAD | sort | uniq) ; do
|
||||||
grep -q "$email" AUTHORS || echo $email
|
grep -q "$email" AUTHORS || echo $email
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
@ -28,15 +28,19 @@ print-missing-copyright() {
|
|||||||
|
|
||||||
authors=$(print-missing-authors)
|
authors=$(print-missing-authors)
|
||||||
if [[ ! -z $authors ]] ; then
|
if [[ ! -z $authors ]] ; then
|
||||||
|
echo ***
|
||||||
echo Author emails not in AUTHORS:
|
echo Author emails not in AUTHORS:
|
||||||
echo $authors
|
echo $authors
|
||||||
|
echo ***
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
copy=$(print-missing-copyright)
|
copy=$(print-missing-copyright)
|
||||||
if [[ ! -z $copy ]] ; then
|
if [[ ! -z $copy ]] ; then
|
||||||
|
echo ***
|
||||||
echo Files missing copyright notice:
|
echo Files missing copyright notice:
|
||||||
echo $copy
|
echo $copy
|
||||||
|
echo ***
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user