]> 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 17:42:02 +0000 (13:42 -0400)
Closes #26299

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

index a3ef53f8840618c300597b477ca978e37357ffdd..2b6315444121c2a27b1cd787703f84ac9a0e3fad 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]