docs: fix |today| 71/9971/1
authorRyota MIBU <r-mibu@cq.jp.nec.com>
Mon, 15 Feb 2016 12:27:40 +0000 (21:27 +0900)
committerRyota MIBU <r-mibu@cq.jp.nec.com>
Mon, 15 Feb 2016 12:34:27 +0000 (21:34 +0900)
'|today|' in each source files is not replaced since it's put in
comment field. This patch fixes this issue by useing 'date' command.

Change-Id: Ia7412ebf61463ecd29c976da245fb872d1403189
Signed-off-by: Ryota MIBU <r-mibu@cq.jp.nec.com>
utils/docs-build.sh

index 3c0e8bd..4d95836 100755 (executable)
@@ -41,7 +41,7 @@ revision="$(git rev-parse --short HEAD)"
 rev_full="$(git rev-parse HEAD)"
 version="$(git describe --abbrev=0 2> /dev/null || echo draft) ($revision)"
 project="$(basename $(git rev-parse --show-toplevel))"
-html_notes="    Revision: $rev_full\n    Build date: |today|"
+html_notes="    Revision: $rev_full\n    Build date: $(date -u +'%Y-%m-%d')"
 default_conf='releng/docs/etc/conf.py'
 opnfv_logo='releng/docs/etc/opnfv-logo.png'