Enhancing onos-release to check for no SNAPSHOTs.

Adding release readiness test script.

Change-Id: Id0e7fe3a83279cf6cf2c5c6cf92048377702894e
diff --git a/tools/build/onos-validate-change-version b/tools/build/onos-validate-change-version
new file mode 100755
index 0000000..1bf7645
--- /dev/null
+++ b/tools/build/onos-validate-change-version
@@ -0,0 +1,16 @@
+#!/bin/bash
+# -----------------------------------------------------------------------------
+# Validates that no pom versions contain SNAPSHOT.
+# -----------------------------------------------------------------------------
+
+[ ! -d "$ONOS_ROOT" ] && echo "ONOS_ROOT is not defined" >&2 && exit 1
+
+aux=/tmp/pom-$$.log
+trap "rm -f $aux 2>/dev/null" EXIT
+
+grep -r SNAPSHOT . | \
+    grep -v -f $(dirname $0)/onos-validate-change-version.excludes > $aux
+
+[ ! -s $aux ] && echo "There are files containing SNAPSHOT references:" && \
+    cat $aux && exit 1
+exit 0
\ No newline at end of file