mirror of
git://git.code.sf.net/p/xtables-addons/xtables-addons
synced 2025-09-06 20:55:13 +02:00
build: update tarball target
This commit is contained in:
15
Makefile.am
15
Makefile.am
@@ -16,10 +16,15 @@ install-exec-hook:
|
|||||||
|
|
||||||
config.status: Makefile.iptrules.in
|
config.status: Makefile.iptrules.in
|
||||||
|
|
||||||
|
tmpdir := $(shell mktemp -dtu)
|
||||||
|
packer = xz
|
||||||
|
packext = .tar.xz
|
||||||
|
|
||||||
.PHONY: tarball
|
.PHONY: tarball
|
||||||
tarball:
|
tarball:
|
||||||
rm -Rf /tmp/xtables-addons-${PACKAGE_VERSION};
|
# do not use mkdir_p here.
|
||||||
pushd ${top_srcdir} && git archive --prefix=xtables-addons-${PACKAGE_VERSION}/ HEAD | tar -C /tmp -x && popd;
|
mkdir ${tmpdir}
|
||||||
pushd /tmp/xtables-addons-${PACKAGE_VERSION} && ./autogen.sh && popd;
|
pushd ${top_srcdir} && git archive --prefix=${PACKAGE_NAME}-${PACKAGE_VERSION}/ HEAD | tar -C ${tmpdir} -x && popd;
|
||||||
tar -C /tmp -cjf xtables-addons-${PACKAGE_VERSION}.tar.bz2 --owner=root --group=root xtables-addons-${PACKAGE_VERSION}/;
|
pushd ${tmpdir}/${PACKAGE_NAME}-${PACKAGE_VERSION} && ./autogen.sh && popd;
|
||||||
rm -Rf /tmp/xtables-addons-${PACKAGE_VERSION};
|
tar --use=${packer} -C ${tmpdir} -cf ${PACKAGE_NAME}-${PACKAGE_VERSION}${packext} --owner=root --group=root ${PACKAGE_NAME}-${PACKAGE_VERSION}/;
|
||||||
|
rm -Rf ${tmpdir};
|
||||||
|
Reference in New Issue
Block a user