Commit 449f19e0 authored by Rob Clark's avatar Rob Clark

Use git commit-date for date in title

Note the clunky 'cut -c 2-' bit is to strip off the leading backslash.
I couldn't figure out a better way to deal with that, since I need to
escape the % char in the git-log command, but the escape char still gets
passed through to the command and ends up in the .info file.

Currently the date shows up like:

   Thu, 2 Feb 2017 16:02:08 -0500

maybe we want to tweak that.
Reviewed-by: Peter Hutterer's avatarPeter Hutterer <peter.hutterer@who-t.net>
parent 56709a2e
......@@ -5,4 +5,4 @@
*.d
*.fls
*.out
*.info
......@@ -685,7 +685,7 @@ SLEEP ?= sleep
BIBTEX ?= bibtex
DVIPS ?= dvips
LATEX ?= latex
PDFLATEX ?= pdflatex
PDFLATEX ?= pdflatex --enable-write18
XELATEX ?= xelatex
EPSTOPDF ?= epstopdf
MAKEINDEX ?= makeindex
......
......@@ -3,8 +3,9 @@
\begin{document}
\title{BYLAWS of the X.Org Foundation}
\immediate\write18{git log -1 --format="\%cD" \jobname.tex | cut -c 2- > \jobname.info}
\date{\input{\jobname.info}}
\maketitle
\date{}
BE IT ENACTED AND IT IS HEREBY ENACTED as a By-law of the X.Org Foundation
(hereinafter called "X.Org") as follows:
......
......@@ -8,8 +8,9 @@
\begin{document}
\title{X.Org Individual Membership Agreement}
\immediate\write18{git log -1 --format="\%cD" \jobname.tex | cut -c 2- > \jobname.info}
\date{\input{\jobname.info}}
\maketitle
\date{}
THIS AGREEMENT is between the X.Org Foundation, a member project of Software
in the Public Interest (SPI), (hereinafter ``X.Org''), and You (hereinafter
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment