Merge branch 'undefined' into 'master'
[opnfvdocs.git] / scripts / docs-build.sh
index c912bdf..69f9625 100755 (executable)
@@ -21,12 +21,12 @@ 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"
 copyright="$(date +%Y), OPNFV."
-copyrightlong="$(date +%Y), OPNFV. Licenced under CC BY 4.0."
+copyrightlong="$(date +%Y), OPNFV. Licensed under CC BY 4.0."
 error_count=0
 
 function set_error() {
@@ -258,4 +258,4 @@ done
 
 deactivate
 
-exit(error_count)
+exit $error_count