From a18d18a70133697dbf68de3b2781774311086259 Mon Sep 17 00:00:00 2001
From: pgen
Date: Mon, 21 May 2018 23:45:11 +0200
Subject: Add the subpackage '-tests' in the specfile
---
Makefile.am | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)
(limited to 'Makefile.am')
diff --git a/Makefile.am b/Makefile.am
index 7862aa5..b8655a5 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,4 +1,17 @@
bin_PROGRAMS = smenu
smenu_SOURCES = smenu.c
dist_man_MANS = smenu.1
-EXTRA_DIST = smenu.spec.in ChangeLog smenu.spec build.sh version COPYRIGHT LICENSE.rst README.rst examples build-aux tests
+EXTRA_DIST = smenu.spec.in smenu.spec ChangeLog build.sh version \
+ COPYRIGHT LICENSE.rst README.rst examples build-aux tests
+
+dist-hook:
+ @chmod u+rw $(distdir)/tests; \
+ cd $(distdir)/tests ; \
+ find * -name 'data*' -o \
+ -name '*.in' -o \
+ -name '*.tst' -o \
+ -name '*.good' \
+ | cpio -o > tests.cpio 2>/dev/null
+ @gzip -f9 $(distdir)/tests/tests.cpio
+ @find $(distdir)/tests/* -type d \
+ -exec rm -rf {} +
--
cgit v1.2.3