From bc309bd158c698734c2e4c4924afc04577d66118 Mon Sep 17 00:00:00 2001 From: Andy Casey Date: Tue, 23 Aug 2016 17:30:45 +0100 Subject: [PATCH] Make the makefile compatible across linux and osx --- article/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/article/Makefile b/article/Makefile index 8c60705..c065e1d 100644 --- a/article/Makefile +++ b/article/Makefile @@ -9,6 +9,9 @@ vc.tex: ../.git/logs/HEAD git config --get remote.origin.url | sed "s/\.git$$//" | sed "s/ssh:\/\/git\@/https:\/\/www\./" >> vc.tex echo '}}' >> vc.tex git log -1 --date=short --format="format:\\newcommand{\\githash}{%h}\\newcommand{\\gitdate}{%ad}\\newcommand{\\gitauthor}{%an}" >> vc.tex + # Safely replace newline character if it exists + cat vc.tex | sed "s/^ewcommand/\\\newcommand/" > vc_safe.tex + mv vc_safe.tex vc.tex %.pdf: %.tex vc.tex ${LATEX} $<