[beast] BUILD: distcheck: ensure $XZ_OPT doesn't default to fast/bad compression



commit 0b001f6deb7cbe7dcac771bc9a465e35d8924eea
Author: Tim Janik <timj gnu org>
Date:   Fri Apr 1 21:15:07 2016 +0200

    BUILD: distcheck: ensure $XZ_OPT doesn't default to fast/bad compression
    
    Signed-off-by: Tim Janik <timj gnu org>

 Makefile.am |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 2ef5218..54bf30e 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -47,6 +47,13 @@ bse-app-test:
 installcheck-local: bse-app-test
 
 
+# == distcheck-checks ==
+DISTCHECK_HOOK = distcheck # help add dependencies to 'distcheck' without overriding its definition
+$(DISTCHECK_HOOK): distcheck-check-xz-opt
+distcheck-check-xz-opt:
+       $(Q) test "$$XZ_OPT" != '--fast' -a "$$XZ_OPT" != '-0' || \
+       { echo "distcheck: error: bad compression option for distribution tarball: XZ_OPT=$$XZ_OPT" >&2 ; 
exit 1 ; }
+
 # == Dist Fixes ==
 # Some files remain after distcheck, that we cannot clean up. So we role our own listfiles filter.
 distuninstallcheck_listfiles  = find . -type f $(patsubst ./%, ! -path \*/%, $(uninstall_filter_files)) 
-print


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