Browse Source

allow to use source date for man page generation

this enables making reproducible builds of this package
tags/v1.9.11-RC1
Bernhard M. Wiedemann 5 years ago
parent
commit
f61bdd80a1
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      man/fill_template

+ 3
- 1
man/fill_template View File

@@ -1,5 +1,7 @@
#!/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

Loading…
Cancel
Save