Ind.ie is now Small Technology Foundation.
check-contrib.sh 740 Bytes
Newer Older
Jakob Borg's avatar
Jakob Borg committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#!/bin/bash

missing-contribs() {
	for email in $(git log --format=%ae master | grep -v jakob@nym.se | sort | uniq) ; do
		grep -q "$email" CONTRIBUTORS || echo $email
	done
}

no-docs-typos() {
	# Commits that are known to not change code
	grep -v f2459ef3319b2f060dbcdacd0c35a1788a94b8bd |\
	grep -v b61f418bf2d1f7d5a9d7088a20a2a448e5e66801 |\
	grep -v f0621207e3953711f9ab86d99724f1d0faac45b1 |\
	grep -v f1120d7aa936c0658429edef0037792520b46334
}

Jakob Borg's avatar
Jakob Borg committed
17 18 19 20 21 22 23 24 25 26 27 28
print-missing-contribs() {
	for email in $(missing-contribs) ; do
		git log --author="$email" --format="%H %ae %s" | no-docs-typos
	done
}

print-missing-copyright() {
	find . -name \*.go | xargs grep -L 'Copyright (C)' | grep -v Godeps
}

print-missing-contribs
print-missing-copyright
Jakob Borg's avatar
Jakob Borg committed
29