add a debian-specific target dist-orig-xz
authorAndrei Zavada <johnhommer@gmail.com>
Sun, 3 Jan 2016 15:20:31 +0000 (17:20 +0200)
committerAndrei Zavada <johnhommer@gmail.com>
Sun, 3 Jan 2016 16:45:48 +0000 (18:45 +0200)
debian/unwanted-files [deleted file]
upstream/Makefile.am

diff --git a/debian/unwanted-files b/debian/unwanted-files
deleted file mode 100644 (file)
index 75788c3..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-m4/libtool.m4
-m4/ltoptions.m4
-m4/ltsugar.m4
-m4/ltversion.m4
-aclocal.m4
-config.sub
-ltmain.sh
-depcomp
-install-sh
-autogen.sh
-configure
-config.guess
-missing
-
-Makefile.in
-src/Makefile.in
-src/*/Makefile.in
-doc/Makefile.in
-doc/lua-api/mdate-sh
-doc/lua-api/texinfo.tex
-doc/lua-api/Makefile.in
-doc/lua-api/mdate-sh
-doc/lua-api/texinfo.tex
-doc/lua-api/stamp-vti
-doc/lua-api/version.texi
-doc/lua-api/cnrun-lua-api.info
index 6d15c4c04b69862bd5a881f14147df998876ecd1..98cfaed6ce36e8763e821ac0150dff470bc750e9 100644 (file)
@@ -26,3 +26,36 @@ test:
         LUA_CPATH="./?.so;$$LUA_CPATH" \
         LD_PRELOAD=../../../src/libcnrun/.libs/libcnrun.so.2.0.0:$$LD_PRELOAD \
          lua ../example1.lua; e=$$?; cd $$_cwd && rm -rf _test; exit $$e)
+
+unwanted_files = \
+       m4/libtool.m4 \
+       m4/ltoptions.m4 \
+       m4/ltsugar.m4 \
+       m4/ltversion.m4 \
+       aclocal.m4 \
+       config.sub \
+       ltmain.sh \
+       depcomp \
+       install-sh \
+       autogen.sh \
+       configure \
+       config.guess \
+       missing \
+       Makefile.in \
+       src/Makefile.in \
+       src/*/Makefile.in \
+       doc/Makefile.in \
+       doc/lua-api/mdate-sh \
+       doc/lua-api/texinfo.tex \
+       doc/lua-api/Makefile.in \
+       doc/lua-api/mdate-sh \
+       doc/lua-api/texinfo.tex \
+       doc/lua-api/stamp-vti \
+       doc/lua-api/version.texi \
+       doc/lua-api/cnrun-lua-api.info
+
+dist-orig-xz: distdir
+       -rm -f $(distdir).tar.xz
+       (cd $(distdir) && rm -rf $(unwanted_files))
+       tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(PACKAGE)_$(VERSION).orig.tar.xz
+       $(am__post_remove_distdir)