Skip to content

Commit

Permalink
generate tarball
Browse files Browse the repository at this point in the history
  • Loading branch information
infinet committed Nov 24, 2022
1 parent be54542 commit 32296f2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,15 @@ libxt-install:

libxt-clean:
${MAKE} ${_mcall} clean

tmpdir := $(shell mktemp -dtu)
packer = xz
packext = .tar.xz

.PHONY: tarball
tarball:
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;
tar --use=${packer} -C ${tmpdir} -cf ${PACKAGE_NAME}-${PACKAGE_VERSION}${packext} --owner=root --group=root ${PACKAGE_NAME}-${PACKAGE_VERSION}/;
rm -Rf ${tmpdir};
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
AC_INIT([xtables-addons], [3.20])
AC_INIT([xt_wgobfs], [0.2.1])
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_MACRO_DIR([m4])
Expand Down

0 comments on commit 32296f2

Please sign in to comment.