[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] 01/14: build: Check for /gnu/store file names upon "make
From: |
Andy Wingo |
Subject: |
[Guile-commits] 01/14: build: Check for /gnu/store file names upon "make dist". |
Date: |
Wed, 1 Mar 2017 15:21:03 -0500 (EST) |
wingo pushed a commit to branch master
in repository guile.
commit 8b834206f99cf0b788c698c525ab7a0d5cae82f8
Author: Ludovic Courtès <address@hidden>
Date: Wed Oct 12 12:01:54 2016 +0200
build: Check for /gnu/store file names upon "make dist".
* Makefile.am (assert-no-store-file-names): New rule, taken from Guix.
(dist-hook): Depend on it.
---
Makefile.am | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)
diff --git a/Makefile.am b/Makefile.am
index 0703326..ebbf6d4 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -2,7 +2,7 @@
##
## Copyright (C) 1998, 1999, 2000, 2001, 2002, 2006, 2007,
## 2008, 2009, 2010, 2011, 2012, 2013,
-## 2014, 2015 Free Software Foundation, Inc.
+## 2014, 2015, 2016 Free Software Foundation, Inc.
##
## This file is part of GUILE.
##
@@ -91,7 +91,7 @@ DISTCLEANFILES = check-guile.log
DISTCHECK_CONFIGURE_FLAGS = --enable-error-on-warning
-dist-hook: gen-ChangeLog gen-tarball-version
+dist-hook: gen-ChangeLog gen-tarball-version assert-no-store-file-names
clean-local:
rm -rf cache/
@@ -108,6 +108,16 @@ gen-ChangeLog:
mv $(distdir)/cl-t $(distdir)/ChangeLog; \
fi
+# Make sure we're not shipping a file that embeds a /gnu/store file
+# name, for maintainers who use Guix.
+.PHONY: assert-no-store-file-names
+assert-no-store-file-names:
+ if grep -rE "/gnu/store/[a-z0-9]{32}-" $(distdir) ;
\
+ then
\
+ echo "error: store file names embedded in the distribution" >&2 ;
\
+ exit 1 ;
\
+ fi
+
BUILT_SOURCES += $(top_srcdir)/.version
$(top_srcdir)/.version:
echo $(VERSION) > address@hidden && mv address@hidden $@
- [Guile-commits] branch master updated (33944f6 -> 1026a76), Andy Wingo, 2017/03/01
- [Guile-commits] 01/14: build: Check for /gnu/store file names upon "make dist".,
Andy Wingo <=
- [Guile-commits] 11/14: tests: Choose a more plausible US English locale name., Andy Wingo, 2017/03/01
- [Guile-commits] 07/14: doc: Fix typo in site packages documentation., Andy Wingo, 2017/03/01
- [Guile-commits] 09/14: i18n: Do not represent zero as "-0"., Andy Wingo, 2017/03/01
- [Guile-commits] 05/14: tests: Avoid statprof test failure on systems without 'setitimer'., Andy Wingo, 2017/03/01
- [Guile-commits] 04/14: build: Honor $SOURCE_DATE_EPOCH for the recorded timestamp., Andy Wingo, 2017/03/01
- [Guile-commits] 06/14: doc: Fix typo in keywords documentation., Andy Wingo, 2017/03/01
- [Guile-commits] 10/14: tests: Use 'pass-if-equal' for (ice-9 i18n) tests., Andy Wingo, 2017/03/01
- [Guile-commits] 13/14: i18n: 'number->locale-string' guesses the minimum number of decimals., Andy Wingo, 2017/03/01
- [Guile-commits] 12/14: i18n: Fix corner cases for monetary and number string conversions., Andy Wingo, 2017/03/01
- [Guile-commits] 02/14: build: Compress with lzip too., Andy Wingo, 2017/03/01