doc: fix out-of-tree build from git

This commit is contained in:
Alex Xu (Hello71) 2022-04-26 10:12:03 -04:00
parent 616c06c0b2
commit 160bf44c9b

View File

@ -12,7 +12,7 @@ if [ $# != 3 ]; then
exit 1
fi
SOURCE_DATE_EPOCH="$(git show --no-patch --format='%ct')"
SOURCE_DATE_EPOCH="$(git -C "$(dirname "$0")" show --no-patch --format='%ct')"
export SOURCE_DATE_EPOCH
output=$3