Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
astron-texmf
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ASTRON SDC
Documents
astron-texmf
Commits
fe5d8a2d
Commit
fe5d8a2d
authored
4 years ago
by
John Swinbank
Browse files
Options
Downloads
Patches
Plain Diff
Pull metadata from git
parent
73d4f7ba
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
example/.gitignore
+1
-0
1 addition, 0 deletions
example/.gitignore
example/Makefile
+16
-1
16 additions, 1 deletion
example/Makefile
example/example.tex
+3
-2
3 additions, 2 deletions
example/example.tex
with
20 additions
and
3 deletions
example/.gitignore
+
1
−
0
View file @
fe5d8a2d
...
...
@@ -2,3 +2,4 @@ example.aux
example.log
example.out
example.pdf
meta.tex
This diff is collapsed.
Click to expand it.
example/Makefile
+
16
−
1
View file @
fe5d8a2d
export
TEXMFHOME
?=
../texmf
example.pdf
:
example.tex
GITVERSION
:=
$(
shell git log
-1
--date
=
short
--pretty
=
%h
)
GITDATE
:=
$(
shell git log
-1
--date
=
short
--pretty
=
%ad
)
GITSTATUS
:=
$(
shell git status
--porcelain
)
ifneq
"$(GITSTATUS)" ""
GITDIRTY
=
-dirty
endif
example.pdf
:
example.tex meta.tex
xelatex example
xelatex example
.FORCE
:
meta.tex
:
Makefile .FORCE
rm
-f
$@
echo
'% GENERATED FILE -- edit this in the Makefile'
>>
$@
/bin/echo
'\\newcommand{\\vcsRevision}{
$(
GITVERSION
)$(
GITDIRTY
)
}'
>>
$@
/bin/echo
'\\newcommand{\\vcsDate}{
$(
GITDATE
)
}'
>>
$@
This diff is collapsed.
Click to expand it.
example/example.tex
+
3
−
2
View file @
fe5d8a2d
\documentclass
{
astron
}
\input
{
meta
}
\setDocTitle
{
Example Document
}
\setDocNumber
{
1
}
\setDocRevision
{
1
}
\setDocDate
{
\
today
}
\setDocRevision
{
\vcsRevision
}
\setDocDate
{
\
vcsDate
}
\setDocClass
{
Limited
}
\setDocProgram
{
SDC
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment