Taglines now include (short) commit hash
This commit is contained in:
parent
de38a589d5
commit
96e7ca79c7
3 changed files with 28 additions and 8 deletions
|
@ -4,16 +4,25 @@
|
|||
|
||||
\version "2.16.0"
|
||||
|
||||
today = #(strftime "%b %e, %Y" (localtime (current-time)))
|
||||
%%% See LSR 567: http://lsr.di.unimi.it/LSR/Item?id=567
|
||||
#(use-modules (ice-9 popen))
|
||||
#(use-modules (ice-9 rdelim))
|
||||
commit =
|
||||
#(let* ((port (open-pipe* OPEN_READ "git" "rev-parse" "--short" "HEAD"))
|
||||
(str (read-line port)))
|
||||
(close-pipe port)
|
||||
str)
|
||||
|
||||
today = #(strftime "%Y-%m-%d" (localtime (current-time)))
|
||||
|
||||
\paper {
|
||||
tagline = \markup {
|
||||
\concat {
|
||||
\with-url #"http://lilypond.org" #(format #f "Typeset with LilyPond ~a" (lilypond-version) )
|
||||
", "
|
||||
\with-url #"https://deboone.nl" " by ET de Boone"
|
||||
\with-url #"https://deboone.nl" "by ET de Boone"
|
||||
", "
|
||||
\concat { "(rev. " \today ")" }
|
||||
\concat { "(rev. " \today ", #" \commit ")" }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4,18 +4,27 @@
|
|||
|
||||
\version "2.16.0"
|
||||
|
||||
today = #(strftime "%b %e, %Y" (localtime (current-time)))
|
||||
%%% See LSR 567: http://lsr.di.unimi.it/LSR/Item?id=567
|
||||
#(use-modules (ice-9 popen))
|
||||
#(use-modules (ice-9 rdelim))
|
||||
commit =
|
||||
#(let* ((port (open-pipe* OPEN_READ "git" "rev-parse" "--short" "HEAD"))
|
||||
(str (read-line port)))
|
||||
(close-pipe port)
|
||||
str)
|
||||
|
||||
today = #(strftime "%Y-%m-%d" (localtime (current-time)))
|
||||
|
||||
\paper {
|
||||
tagline = \markup {
|
||||
\concat {
|
||||
\with-url #"http://lilypond.org" #(format #f "Typeset with LilyPond ~a" (lilypond-version) )
|
||||
", "
|
||||
\with-url #"https://deboone.nl" " by ET de Boone"
|
||||
\with-url #"https://deboone.nl" "by ET de Boone"
|
||||
", "
|
||||
\with-url #"https://seaforth.nl" "Seaforths of Holland"
|
||||
", "
|
||||
\concat { "(rev. " \today ")" }
|
||||
\concat { "(rev. " \today ", #" \commit ")" }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue