release: Patches to make tarball reproducible

Closes #26299

Signed-off-by: David Goulet <dgoulet@torproject.org>
This commit is contained in:
Alexander Færøy 2020-07-10 02:31:35 +02:00 committed by David Goulet
parent fa438b6cf0
commit d37273be0d
2 changed files with 6 additions and 1 deletions

View File

@ -12,6 +12,8 @@ if [ $# != 3 ]; then
exit 1; exit 1;
fi fi
export SOURCE_DATE_EPOCH=$(git show --no-patch --format='%ct')
output=$3 output=$3
if [ "$1" = "html" ]; then if [ "$1" = "html" ]; then
@ -19,7 +21,7 @@ if [ "$1" = "html" ]; then
base=${output%%.html.in} base=${output%%.html.in}
if [ "$2" != none ]; then if [ "$2" != none ]; then
TZ=UTC "$2" -d manpage -o $output $input; TZ=UTC "$2" -f "$(dirname $0)/nofooter.conf" -d manpage -o "$output" "$input";
else else
echo "=================================="; echo "==================================";
echo; echo;

3
doc/nofooter.conf Normal file
View File

@ -0,0 +1,3 @@
# There is a single space on the footer-text line to make it reproducible.
[footer-text]