build: Make sure the distribution doesn't embed store file names.
* Makefile.am (assert-no-store-file-names): New target. (dist-hook): Depend on it.
This commit is contained in:
parent
e793178adb
commit
a463ffd9e8
13
Makefile.am
13
Makefile.am
|
@ -412,7 +412,7 @@ AM_DISTCHECK_CONFIGURE_FLAGS = \
|
||||||
--with-nix-prefix="$(NIX_PREFIX)" \
|
--with-nix-prefix="$(NIX_PREFIX)" \
|
||||||
--enable-daemon
|
--enable-daemon
|
||||||
|
|
||||||
dist-hook: sync-synopses gen-ChangeLog
|
dist-hook: sync-synopses gen-ChangeLog assert-no-store-file-names
|
||||||
|
|
||||||
sync-synopses:
|
sync-synopses:
|
||||||
-$(top_builddir)/pre-inst-env $(GUILE) \
|
-$(top_builddir)/pre-inst-env $(GUILE) \
|
||||||
|
@ -426,4 +426,13 @@ gen-ChangeLog:
|
||||||
mv $(distdir)/cl-t $(distdir)/ChangeLog; \
|
mv $(distdir)/cl-t $(distdir)/ChangeLog; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
.PHONY: sync-synopses gen-ChangeLog
|
# Make sure we're not shipping a file that embeds a local /nix/store file name.
|
||||||
|
assert-no-store-file-names:
|
||||||
|
if grep -r --exclude=*.texi --exclude=*.info \
|
||||||
|
"$(storedir)/[a-z0-9]{32}-" $(distdir) ; \
|
||||||
|
then \
|
||||||
|
echo "error: store file names embedded in the distribution" >&2 ; \
|
||||||
|
exit 1 ; \
|
||||||
|
fi
|
||||||
|
|
||||||
|
.PHONY: sync-synopses gen-ChangeLog assert-no-store-file-names
|
||||||
|
|
Loading…
Reference in New Issue