Skip to content

Commit

Permalink
Separate version and date commands
Browse files Browse the repository at this point in the history
  • Loading branch information
joelpurra committed Oct 18, 2014
1 parent c944ab2 commit 7e66195
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion generate-pdfs.sh
Expand Up @@ -41,7 +41,7 @@ do
cd "$folder"

# Hacky rewrite of .lyx file
cat "$base.lyx" | sed "s/(Unknown version)/$description/" > "$base.tmp.lyx"
cat "$base.lyx" | sed "s/(Unknown~document~version)/$description/" > "$base.tmp.lyx"
touchedLyxFileBases+=("$base")
lyx --force-overwrite --export pdf2 "$base.tmp.lyx" &> "$logfile"
mv "$base.tmp.pdf" "$base.pdf"
Expand Down
5 changes: 3 additions & 2 deletions report/report.lyx
Expand Up @@ -35,7 +35,8 @@

\usepackage{numprint}

\providecommand{\versionortoday}{(Unknown version) - \today}
\providecommand{\versiononly}{(Unknown~document~version)}
\providecommand{\versionandtoday}{\versiononly~--~\today}

\providecommand{\recentlyupdated}{\emph\textsc\textcolor{updated}{ ~Updated!~ }}

Expand Down Expand Up @@ -237,7 +238,7 @@ status open


\backslash
versionortoday
versionandtoday
\end_layout

\end_inset
Expand Down

0 comments on commit 7e66195

Please sign in to comment.