summaryrefslogtreecommitdiffstats
path: root/scripts/docs-build.sh
diff options
context:
space:
mode:
authorSofia Wallin <sofia.wallin@ericsson.com>2017-01-15 19:36:48 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-01-15 19:36:48 +0000
commit2e90847bdc1ef9ce49eb4c3424690fbb3460818f (patch)
tree916c61283f5e1dd225174b0bd5e7640d0eb29a17 /scripts/docs-build.sh
parent719c233bac20d405f62d71b6bd5f6f2e1df8e879 (diff)
parentfde67edd285057042fc85c2be37fe8603b37ceba (diff)
Merge "Update build script to newer tag"
Diffstat (limited to 'scripts/docs-build.sh')
-rwxr-xr-xscripts/docs-build.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/docs-build.sh b/scripts/docs-build.sh
index 9c3b49fde..69f962505 100755
--- a/scripts/docs-build.sh
+++ b/scripts/docs-build.sh
@@ -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"