X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=scripts%2Fdocs-build.sh;h=69f962505d852320488bcb7f7100690b8a398b83;hb=ebdfcd3958800c90aedaecd5bdd92e60e0c9e3c1;hp=91bb91a2028ba4ce06338ad4d42b7572da42d326;hpb=9899d32e4d73fa9657150b4b5b2e70ee997fc486;p=opnfvdocs.git diff --git a/scripts/docs-build.sh b/scripts/docs-build.sh index 91bb91a20..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() {