summaryrefslogtreecommitdiff
path: root/tools/validate-maintainer.sh
diff options
context:
space:
mode:
authorLars Kellogg-Stedman <lars@redhat.com>2014-10-22 11:12:50 -0400
committerLars Kellogg-Stedman <lars@redhat.com>2014-10-31 10:10:27 -0400
commit6666d1e973b4dd2b5bf22970cfcc53d77007a3e8 (patch)
tree1e238079b671429c1edd755f3d6bd166cb5fe25a /tools/validate-maintainer.sh
parent277f2448e8fde089cfed0a3dfe2e74dc265af447 (diff)
downloadkolla-6666d1e973b4dd2b5bf22970cfcc53d77007a3e8.tar.gz
kolla-6666d1e973b4dd2b5bf22970cfcc53d77007a3e8.zip
add maintainer check to tests
Change-Id: I6ee985e694142aa7dadeb085b77910667ac6359f
Diffstat (limited to 'tools/validate-maintainer.sh')
-rwxr-xr-xtools/validate-maintainer.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/tools/validate-maintainer.sh b/tools/validate-maintainer.sh
new file mode 100755
index 000000000..d6bb75a84
--- /dev/null
+++ b/tools/validate-maintainer.sh
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+MAINTANER='MAINTAINER Kolla Project (https://launchpad.net/kolla)'
+RES=0
+
+for dockerfile in "$@"; do
+ if ! grep -q "$MAINTAINER" "$dockerfile"; then
+ echo "ERROR: $dockerfile has incorrect MAINTAINER" >&2
+ RES=1
+ fi
+done
+
+exit $RES
+