Skip to content

Commit

Permalink
release: Patches to make tarball reproducible
Browse files Browse the repository at this point in the history
Closes #26299

Signed-off-by: David Goulet <[email protected]>
  • Loading branch information
ahf authored and dgoulet-tor committed Oct 28, 2021
1 parent a80868c commit 11fedab
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion doc/asciidoc-helper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,16 @@ if [ $# != 3 ]; then
exit 1;
fi

export SOURCE_DATE_EPOCH=$(git show --no-patch --format='%ct')

output=$3

if [ "$1" = "html" ]; then
input=${output%%.html.in}.1.txt
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;
Expand Down
3 changes: 3 additions & 0 deletions doc/nofooter.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# There is a single space on the footer-text line to make it reproducible.
[footer-text]

0 comments on commit 11fedab

Please sign in to comment.