From ba8ca45217144b610a2274156f359206ab8f8d0a Mon Sep 17 00:00:00 2001 From: Glen Gibb Date: Mon, 14 Dec 2009 16:10:10 -0800 Subject: [PATCH] spec: update version/title Created a command to output the version number. Changed the title on each page to "OpenFlow Switch Specification" and "Version \ofversion" --- doc/of-spec/openflow-spec-v1.0.0.tex | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/doc/of-spec/openflow-spec-v1.0.0.tex b/doc/of-spec/openflow-spec-v1.0.0.tex index aadc935..f04d6ae 100644 --- a/doc/of-spec/openflow-spec-v1.0.0.tex +++ b/doc/of-spec/openflow-spec-v1.0.0.tex @@ -13,9 +13,14 @@ %\lstset{language=C} +% Define the OpenFlow version here +\newcommand{\ofversion}{1.0.0} + \pagestyle{fancy} \fancyhead{} -\chead{DO NOT BUILD A SWITCH FROM THIS SPECIFICATION!} +\lhead{OpenFlow Switch Specification} +%\chead{DO NOT BUILD A SWITCH FROM THIS SPECIFICATION!} +\rhead{Version \ofversion} \renewcommand{\headrulewidth}{0.4pt} \renewcommand{\footrulewidth}{0.4pt} @@ -25,7 +30,7 @@ \newcommand{\qosupd}[1]{{\color{blue} #1}} \title{OpenFlow Switch Specification} -\author{Version 1.0.0 ( Wire Protocol \input{define/OFP_VERSION})} +\author{Version \ofversion{} ( Wire Protocol \input{define/OFP_VERSION})} \date{\today} \maketitle