Extending the versioning to cover BUCK artifacts.
Adding ability to version extraneous stuff.
Change-Id: I2e18dafd6d8705504ab01000d6707037415dfd0c
(cherry picked from commit 251016df5db8f11a14c4856f9b381e85ae1e2631)
diff --git a/tools/build/onos-validate-change-version b/tools/build/onos-validate-change-version
index d8f917f..826b693 100755
--- a/tools/build/onos-validate-change-version
+++ b/tools/build/onos-validate-change-version
@@ -9,8 +9,11 @@
trap "rm -f $aux 2>/dev/null" EXIT
cd $ONOS_ROOT
-grep -r SNAPSHOT . | \
- egrep -v -f $ONOS_ROOT/tools/build/onos-validate-change-version.excludes >$aux
+find . -type f | \
+ egrep -v -f $ONOS_ROOT/tools/build/onos-validate-change-version.excludes | \
+ xargs grep SNAPSHOT >$aux
+
+ # FIXME: deal properly with files with white-space in them
if [ -s $aux ]; then
echo "There are files containing SNAPSHOT references:"