Skip to content

Commit

Permalink
build: make make tarball POSIX sh-compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
jengelh committed Nov 6, 2024
1 parent 42c62ec commit c196ba3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit c196ba3

Please sign in to comment.