]> 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:31:52 +0000 (14:31 -0400)
Closes #26299

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

index 765850a125c3aff933286481c5986671e36363ee..10604d31cf44e8ca6c3367caee3681a177e0749d 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]