From f61bdd80a1a9a286f4a52287cefaa31db4a76865 Mon Sep 17 00:00:00 2001 From: "Bernhard M. Wiedemann" Date: Fri, 18 Mar 2016 17:15:23 +0100 Subject: [PATCH] allow to use source date for man page generation this enables making reproducible builds of this package --- man/fill_template | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/man/fill_template b/man/fill_template index 3ebf9ab4..8f147457 100644 --- a/man/fill_template +++ b/man/fill_template @@ -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