guix: fix source archive

This commit is contained in:
tobtoht 2023-01-13 16:29:18 +01:00
parent bace4fd0a8
commit f58f98ea60

View file

@ -231,7 +231,7 @@ GIT_ARCHIVE="${DIST_ARCHIVE_BASE}/${DISTNAME}.tar.gz"
if [ ! -e "$GIT_ARCHIVE" ]; then if [ ! -e "$GIT_ARCHIVE" ]; then
mkdir -p "$(dirname "$GIT_ARCHIVE")" mkdir -p "$(dirname "$GIT_ARCHIVE")"
git rev-parse --short=12 HEAD > githash.txt git rev-parse --short=12 HEAD > githash.txt
( git ls-files --recurse-submodules ; echo "githash.txt" ) | cat | tar --transform 's,^,$DISTNAME/,' -caf ${GIT_ARCHIVE} -T- ( git ls-files --recurse-submodules ; echo "githash.txt" ) | cat | tar --transform "s,^,${DISTNAME}/," -caf ${GIT_ARCHIVE} -T-
sha256sum "$GIT_ARCHIVE" sha256sum "$GIT_ARCHIVE"
fi fi