]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
release: Patches to make tarball reproducible
authorAlexander Færøy <ahf@torproject.org>
Fri, 10 Jul 2020 00:31:35 +0000 (02:31 +0200)
committerDavid Goulet <dgoulet@torproject.org>
Thu, 28 Oct 2021 18:45:31 +0000 (14:45 -0400)
Closes #26299

Signed-off-by: David Goulet <dgoulet@torproject.org>
doc/asciidoc-helper.sh
doc/nofooter.conf [new file with mode: 0644]

index edc9b5b0ea9b9eeb1fe85d78cf3f691a9e95329c..fdaab05b8e0a4c933fc0bbc41d801cd99bf54fbc 100755 (executable)
@@ -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 (file)
index 0000000..f16d76b
--- /dev/null
@@ -0,0 +1,3 @@
+# There is a single space on the footer-text line to make it reproducible.
+[footer-text]