[PATCH 04/24] Makefile: add a "tarball" target

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



commit 64b1ca517e1773cc0f42a6cd0a1a5f0a4be267c7
Author: Jan Engelhardt <jengelh@xxxxxxxxxxxxxxx>
Date:   Mon Mar 3 13:04:07 2008 +0100

    Makefile: add a "tarball" target
---
 Makefile.am |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index a0f33c6..5240635 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -93,3 +93,11 @@ ip6tables.8: ${srcdir}/ip6tables.8.in extensions/matches6.man extensions/targets
 
 extensions/%:
 	${MAKE} ${AM_MAKEFLAGS} -C $(@D) $(@F)
+
+.PHONY: tarball
+tarball:
+	rm -Rf /tmp/xtables-${PACKAGE_VERSION};
+	pushd ${top_srcdir} && git-archive --prefix=xtables-${PACKAGE_VERSION}/ HEAD | tar -C /tmp -x && popd;
+	pushd /tmp/xtables-${PACKAGE_VERSION} && ./autogen.sh && popd;
+	tar -C /tmp -cjf xtables-${PACKAGE_VERSION}.tar.bz2 xtables-${PACKAGE_VERSION}/;
+	rm -Rf /tmp/xtables-${PACKAGE_VERSION};
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux