Add devstack-version script
This will help in collecting information about the devstack version
being used.
Change-Id: I23a8ca023bda6d097051cd57ae45401806451ad5
diff --git a/functions b/functions
index e056c3f..738040d 100644
--- a/functions
+++ b/functions
@@ -751,6 +751,21 @@
}
+function write_devstack_version {
+ pushd $TOP_DIR
+ local git_version=""
+ git_version=$(git log --format="%H %s %ci" -1)
+ cat - > /tmp/devstack-version <<EOF
+#!/bin/bash
+
+echo "DevStack Version: ${DEVSTACK_SERIES} - ${git_version}"
+echo "OS Version: ${os_VENDOR} ${os_RELEASE} ${os_CODENAME}"
+
+EOF
+ sudo install -m 755 /tmp/devstack-version /usr/local/bin/devstack-version
+ rm /tmp/devstack-version
+}
+
# Restore xtrace
$_XTRACE_FUNCTIONS