summaryrefslogtreecommitdiff
path: root/make-setup-generated.sh
diff options
context:
space:
mode:
authorrusty <rusty@0c8fb4dd-22a2-4bb5-bc14-6c75a5f43652>2013-12-03 06:42:31 +0000
committerrusty <rusty@0c8fb4dd-22a2-4bb5-bc14-6c75a5f43652>2013-12-03 06:42:31 +0000
commit4373909d0685327f18019e2a4cb91da512fbecc0 (patch)
treeda23ca0dd1d451db25c0b5f40a6c62c6ff586b37 /make-setup-generated.sh
parentfee371b4b128dbe29cb18f59e8f6df7ded7cc50c (diff)
Formatting repair as per Chet's feedback.
1) Populate TC member list. 2) Remove Non-Normative References section 3) Fix URLs to point to correct place. Signed-off-by: Rusty Russell <rusty@au1.ibm.com> git-svn-id: https://tools.oasis-open.org/version-control/svn/virtio@153 0c8fb4dd-22a2-4bb5-bc14-6c75a5f43652
Diffstat (limited to 'make-setup-generated.sh')
-rwxr-xr-xmake-setup-generated.sh44
1 files changed, 44 insertions, 0 deletions
diff --git a/make-setup-generated.sh b/make-setup-generated.sh
new file mode 100755
index 0000000..eedc745
--- /dev/null
+++ b/make-setup-generated.sh
@@ -0,0 +1,44 @@
+#! /bin/sh
+
+case "$1" in
+ *-wd*)
+ STAGE=wd
+ STAGENAME="Working Draft"
+ WORKINGDRAFT=`basename "$1" | sed 's/.*-wd//'`
+ ;;
+ *-os*)
+ STAGE=os
+ STAGENAME="OASIS Standard"
+ WORKINGDRAFT=""
+ ;;
+ *-csd*)
+ STAGE=csd
+ STAGENAME="Committee Specification Draft"
+ WORKINGDRAFT=`basename "$1" | sed 's/.*-csd//'`
+ ;;
+ *-csprd*)
+ STAGE=csprd
+ STAGENAME="Committee Specification Public Review Draft"
+ WORKINGDRAFT=`basename "$1" | sed 's/.*-csprd//'`
+ ;;
+ *-cs*)
+ STAGE=cs
+ STAGENAME="Committee Specification"
+ WORKINGDRAFT=""
+ ;;
+ *)
+ echo Unknown doc type >&2
+ 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{\virtiodraftstagename}{$STAGENAME}
+EOF