Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
TPF
jack2
Commits
576422cd
Commit
576422cd
authored
Mar 18, 2016
by
Stéphane Letz
Browse files
Merge pull request #196 from bmwiedemann/master
allow to use source date for man page generation
parents
bde8d3d4
f61bdd80
Changes
1
Hide whitespace changes
Inline
Side-by-side
man/fill_template
View file @
576422cd
#!/bin/sh
d
=
""
[
-z
"
$SOURCE_DATE_EPOCH
"
]
||
d
=
--date
=
@
$SOURCE_DATE_EPOCH
for
i
in
*
.0
;
do
sed
-e
"s/!VERSION!/
${
1
}
/g"
-e
"s/!DATE!/
`
date
'+%B %Y'
`
/g"
<
${
i
}
>
${
i
%%0
}
1
sed
-e
"s/!VERSION!/
${
1
}
/g"
-e
"s/!DATE!/
`
date
$d
'+%B %Y'
`
/g"
<
${
i
}
>
${
i
%%0
}
1
done
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment