Update build script to newer tag 37/26937/1
authorShubhamRathi <shubhamiiitbackup@gmail.com>
Thu, 12 Jan 2017 14:03:22 +0000 (19:33 +0530)
committerShubhamRathi <shubhamiiitbackup@gmail.com>
Thu, 12 Jan 2017 14:03:22 +0000 (19:33 +0530)
The build script showed the tag as 'arno.2015.2.0'. The script
has been updated to take the latest tag.

Change-Id: Ifb64128d3c1097ac99130f00313d9eab7e885778
Signed-off-by: ShubhamRathi <shubhamiiitbackup@gmail.com>
scripts/docs-build.sh

index 9c3b49f..69f9625 100755 (executable)
@@ -21,7 +21,7 @@ GERRIT_COMMENT=${GERRIT_COMMENT:-}
 
 revision="$(git rev-parse --short HEAD)"
 rev_full="$(git rev-parse HEAD)"
-version="$(git describe --abbrev=0 2> /dev/null || echo draft) ($revision)"
+version="$(git tag | tail -1)"
 project="$(basename $(git rev-parse --show-toplevel))"
 html_notes="    Revision: $rev_full\n    Build date: $(date -u +'%Y-%m-%d')"
 opnfv_logo="$OPNFVDOCS_DIR/etc/opnfv-logo.png"