summaryrefslogtreecommitdiff
path: root/make-setup-generated.sh
diff options
context:
space:
mode:
authorrusty <rusty@0c8fb4dd-22a2-4bb5-bc14-6c75a5f43652>2013-12-03 07:49:50 +0000
committerrusty <rusty@0c8fb4dd-22a2-4bb5-bc14-6c75a5f43652>2013-12-03 07:49:50 +0000
commit900a539c9332a247d08520caa47e7c32d28d480a (patch)
tree3988069a7180c992729a7ebd0b2607a94b8e4f65 /make-setup-generated.sh
parentf0acc42b9ad65217b729f8a1c1f839b99053630e (diff)
More formatting fixes from Chet's suggestions:
1) Indented pdf subtitles correctly. 2) Correct wording for public review drafts 3) Include footnote html files. 4) "approved by VIRTIO" not "members of OASIS" 5) "OASIS Standard" in citation section changed to depend on filename. 6) URL in citation section fixed. 7) Footnotes in HTML version are all consecutively numbered. Signed-off-by: Rusty Russell <rusty@au1.ibm.com> git-svn-id: https://tools.oasis-open.org/version-control/svn/virtio@156 0c8fb4dd-22a2-4bb5-bc14-6c75a5f43652
Diffstat (limited to 'make-setup-generated.sh')
-rwxr-xr-xmake-setup-generated.sh13
1 files changed, 10 insertions, 3 deletions
diff --git a/make-setup-generated.sh b/make-setup-generated.sh
index eedc745..ba3fdd4 100755
--- a/make-setup-generated.sh
+++ b/make-setup-generated.sh
@@ -1,5 +1,11 @@
#! /bin/sh
+VERSION=1.0
+if [ x"$DATESTR" = x ]; then
+ ISODATE=`git show --format=format:'%cd' --date=iso | head -n 1`
+ DATESTR=`date -d "$DATE" +'%d %B %Y'`
+fi
+
case "$1" in
*-wd*)
STAGE=wd
@@ -20,6 +26,8 @@ case "$1" in
STAGE=csprd
STAGENAME="Committee Specification Public Review Draft"
WORKINGDRAFT=`basename "$1" | sed 's/.*-csprd//'`
+ STAGEEXTRATITLE=" / \newline Public Review Draft $WORKINGDRAFT"
+ STAGEEXTRA=" / Public Review Draft $WORKINGDRAFT"
;;
*-cs*)
STAGE=cs
@@ -31,14 +39,13 @@ case "$1" in
exit 1
esac
-VERSION=1.0
-ISODATE=`git show --format=format:'%cd' --date=iso | head -n 1`
-DATESTR=`date -d "$DATE" +'%d %b %Y'`
cat > setup-generated.tex <<EOF
% define VIRTIO Working Draft number and date
\newcommand{\virtiorev}{$VERSION}
\newcommand{\virtioworkingdraftdate}{$DATESTR}
\newcommand{\virtioworkingdraft}{$WORKINGDRAFT}
\newcommand{\virtiodraftstage}{$STAGE}
+\newcommand{\virtiodraftstageextra}{$STAGEEXTRA}
+\newcommand{\virtiodraftstageextratitle}{$STAGEEXTRATITLE}
\newcommand{\virtiodraftstagename}{$STAGENAME}
EOF