Adding update-versions scripts to automate version changes in ONOS apps
Change-Id: I8626ec4a2957c14fbc930249e6eadb67c1a0f750
diff --git a/update-versions b/update-versions
new file mode 100755
index 0000000..9d6e053
--- /dev/null
+++ b/update-versions
@@ -0,0 +1,16 @@
+#!/bin/bash
+
+#-----------------------------------------------
+#Updates versions for all onos cord applications
+#-----------------------------------------------
+
+APP_VERSION=$1
+ONOS_VERSION=$2
+
+cd apps
+
+mvn versions:set -DnewVersion=$APP_VERSION versions:commit
+git submodule foreach mvn versions:set -DnewVersion=$APP_VERSION versions:commit
+
+
+git submodule foreach mvn versions:update-parent -DparentVersion=[$ONOS_VERSION]