diff options
-rwxr-xr-x | doc/cli.sh | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1,6 +1,6 @@ #! /usr/bin/env bash -version="0.4" # 0.4.0 +version="0.4.0" date="September 2016" trap 'exit 1' ERR @@ -28,7 +28,9 @@ function gen () # <name> { local n="$1" shift - cli -I .. -v version="$version" -v date="$date" \ + cli -I .. \ +-v version="$(echo "$version" | sed -e 's/^\([^.]*\.[^.]*\).*/\1/')" \ +-v date="$date" \ --generate-html --html-suffix .xhtml \ --html-prologue-file doc-prologue.xhtml \ --html-epilogue-file doc-epilogue.xhtml \ |