From 8a0a8bba64646711a61a47df2365bb5161ace1f7 Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Wed, 21 Aug 2013 10:43:25 -0400 Subject: [PATCH] Current date will be used if no verstr.tex exists --- lvspec.cls | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lvspec.cls b/lvspec.cls index 93b51df..c0b0733 100644 --- a/lvspec.cls +++ b/lvspec.cls @@ -58,7 +58,14 @@ \setcounter{secnumdepth}{4} % the version string is taken directly from a file written by the build process -\def\@verstr{{\footnotesize\tt\input{verstr.tex}}} +\def\@verstr{{% + \footnotesize\tt + % if verstr.tex exists, then use that as the version string; otherwise, fall + % back to the current date + \IfFileExists{verstr.tex}% + {\input{verstr.tex}}% + {\number\year-\number\month-\number\day}% +}} \def\@oddhead{\small\sc\rightmark\hfill TODO} \let\@evenhead\@oddhead