From c196ba31e741766eae80972ab38f11401baac656 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Wed, 6 Nov 2024 16:46:50 +0100 Subject: [PATCH] build: make `make tarball` POSIX sh-compatible --- Makefile.am | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile.am b/Makefile.am index 50a25a315..628d4f944 100644 --- a/Makefile.am +++ b/Makefile.am @@ -428,7 +428,7 @@ dldcheck.stamp: dldcheck ${dldcheck_files} tarball: tmpdir=$$(mktemp -dtu); \ mkdir $$tmpdir && \ - pushd ${top_srcdir} && git archive --prefix=${PACKAGE_NAME}-${PACKAGE_VERSION}/ HEAD | tar -C $$tmpdir -x && popd; \ - pushd $$tmpdir/${PACKAGE_NAME}-${PACKAGE_VERSION} && autoreconf -fi && rm -Rf autom4te*.cache && popd; \ + (cd ${top_srcdir} && git archive --prefix=${PACKAGE_NAME}-${PACKAGE_VERSION}/ HEAD | tar -C $$tmpdir -x); \ + (cd $$tmpdir/${PACKAGE_NAME}-${PACKAGE_VERSION} && autoreconf -fi && rm -Rf autom4te*.cache); \ tar --use=zstd -C $$tmpdir -cf ${PACKAGE_NAME}-${PACKAGE_VERSION}.tar.zst --owner=root --group=root ${PACKAGE_NAME}-${PACKAGE_VERSION}/; \ rm -Rf $$tmpdir