From 66931411d01121e7edd5430e7826597473f744ee Mon Sep 17 00:00:00 2001 From: Ralf Wildenhues Date: Tue, 8 Jan 2008 21:45:37 +0100 Subject: [PATCH] Ensure world-executable tests in the distribution. * Makefile.am (dist-hook): New, ensure world-executable tests. * THANKS: Update. Report by Arto C. Nirkko. --- ChangeLog | 4 ++++ Makefile.am | 6 +++++- Makefile.in | 15 +++++++++++---- THANKS | 1 + 4 files changed, 21 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 8835cfd8f..766941a30 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2008-01-08 Ralf Wildenhues + * Makefile.am (dist-hook): New, ensure world-executable tests. + * THANKS: Update. + Report by Arto C. Nirkko. + * tests/acloca20.test: Use `--force' with the second $AUTOCONF, to force update on fast machines where both autoconf invocations happen within the same second. diff --git a/Makefile.am b/Makefile.am index 97504b854..0e787a849 100644 --- a/Makefile.am +++ b/Makefile.am @@ -3,7 +3,7 @@ ## Makefile for Automake. ## Copyright (C) 1995, 1996, 1997, 1998, 1999, 2001, 2002, 2003, 2004, -## 2005, 2006, 2007 Free Software Foundation, Inc. +## 2005, 2006, 2007, 2008 Free Software Foundation, Inc. ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by @@ -99,6 +99,10 @@ INSTALL: lib/INSTALL ## to anybody else ## +# Ensure tests are world-executable +dist-hook: + cd $(distdir)/tests && chmod a+rx *.test + # Some simple checks, and then ordinary check. These are only really # guaranteed to work on my machine. maintainer-check: automake aclocal diff --git a/Makefile.in b/Makefile.in index 2a9ac427e..24e5abc02 100644 --- a/Makefile.in +++ b/Makefile.in @@ -464,6 +464,9 @@ distdir: $(DISTFILES) || exit 1; \ fi; \ done + $(MAKE) $(AM_MAKEFLAGS) \ + top_distdir="$(top_distdir)" distdir="$(distdir)" \ + dist-hook -find "$(distdir)" -type d ! -perm -777 -exec chmod a+rwx {} \; -o \ ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ @@ -670,10 +673,10 @@ uninstall-am: uninstall-binSCRIPTS .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ all all-am am--refresh check check-am clean clean-generic \ ctags ctags-recursive dist dist-all dist-bzip2 dist-gzip \ - dist-lzma dist-shar dist-tarZ dist-zip distcheck distclean \ - distclean-generic distclean-tags distcleancheck distdir \ - distuninstallcheck dvi dvi-am html html-am info info-am \ - install install-am install-binSCRIPTS install-data \ + dist-hook dist-lzma dist-shar dist-tarZ dist-zip distcheck \ + distclean distclean-generic distclean-tags distcleancheck \ + distdir distuninstallcheck dvi dvi-am html html-am info \ + info-am install install-am install-binSCRIPTS install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-exec-hook install-html install-html-am \ install-info install-info-am install-man install-pdf \ @@ -715,6 +718,10 @@ INSTALL: lib/INSTALL ################################################################ +# Ensure tests are world-executable +dist-hook: + cd $(distdir)/tests && chmod a+rx *.test + # Some simple checks, and then ordinary check. These are only really # guaranteed to work on my machine. maintainer-check: automake aclocal diff --git a/THANKS b/THANKS index eee4eda30..6aa4057f5 100644 --- a/THANKS +++ b/THANKS @@ -24,6 +24,7 @@ Angus Leeming a.leeming@ic.ac.uk Anthony Green green@cygnus.com Arkadiusz Miskiewicz misiek@pld.ORG.PL Art Haas ahaas@neosoft.com +Arto C. Nirkko anirkko@insel.ch Assar Westerlund assar@sics.se Axel Belinfante Axel.Belinfante@cs.utwente.nl Bas Wijnen shevek@fmf.nl -- 2.11.4.GIT