Skip to content

Commit

Permalink
Add version (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpvillaisaza authored Feb 7, 2024
1 parent a555d3d commit 09f3409
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .latexmkrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
if (defined $ENV{'VERSION'} && $ENV{'VERSION'} ne '') {
$version = $ENV{'VERSION'};
} else {
$version = qx(git log -1 --format=%h);
$version =~ s/^\s+|\s+$//g;
$version = "None" unless $version;
}

$xelatex = "xelatex -shell-escape %O '\\def\\version{$version}\\input{%S}'";
5 changes: 5 additions & 0 deletions resume.tex
Original file line number Diff line number Diff line change
Expand Up @@ -311,4 +311,9 @@ \section{Languages}
% \cventry{2014}{Moralities of Everyday Life}{Coursera}{}{91.7/100}{}
% \cventry{2010--2011}{Jóvenes pioneros}{Periódico El Colombiano}{Medellín}{}{}

\vspace*{\fill}
\begin{footnotesize}
\cvitem{Version}{\texttt{\version} (\today)}
\end{footnotesize}

\end{document}

0 comments on commit 09f3409

Please sign in to comment.