tor

The Tor anonymity network
git clone https://git.dasho.dev/tor.git
Log | Files | Refs | README | LICENSE

commit 5a3f6d162c218397f5859052e0ac75d2d5292925
parent 892d0f4517c29cbf4b66663734bec5f07690adc9
Author: Jérôme Charaoui <jerome@riseup.net>
Date:   Wed, 19 Nov 2025 07:43:05 -0500

make git requirement in docs build avoidable

we can build the docs when building the debian package except this bit
fails because git isn't typically installed in the build env, and
SOURCE_DATE_EPOCH is actually already defined and set to the date of
the latest entry of the debian changelog

Diffstat:
Mdoc/asciidoc-helper.sh | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/doc/asciidoc-helper.sh b/doc/asciidoc-helper.sh @@ -12,8 +12,10 @@ if [ $# != 3 ]; then exit 1 fi -SOURCE_DATE_EPOCH="$(git -C "$(dirname "$0")" show --no-patch --format='%ct')" -export SOURCE_DATE_EPOCH +if [ -z "$SOURCE_DATE_EPOCH" ]; then + SOURCE_DATE_EPOCH="$(git -C "$(dirname "$0")" show --no-patch --format='%ct')" + export SOURCE_DATE_EPOCH +fi output=$3