X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=scripts%2Fdocs-build.sh;h=69f962505d852320488bcb7f7100690b8a398b83;hb=77fb14b9034672d64a503aa1ddf337413eb019e5;hp=c912bdf8cb840159a2e62779473daba4d8abc88c;hpb=80c1b9a92d02a2a565876092d0495dd79d3ed2c6;p=opnfvdocs.git diff --git a/scripts/docs-build.sh b/scripts/docs-build.sh index c912bdf8c..69f962505 100755 --- a/scripts/docs-build.sh +++ b/scripts/docs-build.sh @@ -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