diff options
author | Alexander Færøy <ahf@torproject.org> | 2020-07-10 02:31:35 +0200 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2021-10-28 14:45:31 -0400 |
commit | c845f2e4b24753974fe5615290a083291590687f (patch) | |
tree | d5c27da0e77bea242e064d2e0660ed235de900b9 | |
parent | 02d86bc21bb998e0a522e4058b2e6443a52e1b10 (diff) | |
download | tor-c845f2e4b24753974fe5615290a083291590687f.tar.gz tor-c845f2e4b24753974fe5615290a083291590687f.zip |
release: Patches to make tarball reproducible
Closes #26299
Signed-off-by: David Goulet <dgoulet@torproject.org>
-rwxr-xr-x | doc/asciidoc-helper.sh | 4 | ||||
-rw-r--r-- | doc/nofooter.conf | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/doc/asciidoc-helper.sh b/doc/asciidoc-helper.sh index edc9b5b0ea..fdaab05b8e 100755 --- a/doc/asciidoc-helper.sh +++ b/doc/asciidoc-helper.sh @@ -12,6 +12,8 @@ if [ $# != 3 ]; then exit 1 fi +export SOURCE_DATE_EPOCH=$(git show --no-patch --format='%ct') + output=$3 if [ "$1" = "html" ]; then @@ -19,7 +21,7 @@ if [ "$1" = "html" ]; then base=${output%%.html.in} 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 echo "==================================" echo diff --git a/doc/nofooter.conf b/doc/nofooter.conf new file mode 100644 index 0000000000..f16d76b2da --- /dev/null +++ b/doc/nofooter.conf @@ -0,0 +1,3 @@ +# There is a single space on the footer-text line to make it reproducible. +[footer-text] + |