Ensure world-executable tests in the distribution.
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Tue, 8 Jan 2008 20:45:37 +0000 (21:45 +0100)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Tue, 8 Jan 2008 20:45:37 +0000 (21:45 +0100)
* Makefile.am (dist-hook): New, ensure world-executable tests.
* THANKS: Update.
Report by Arto C. Nirkko.

ChangeLog
Makefile.am
Makefile.in
THANKS

index 8835cfd..766941a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
+       * 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.
index 97504b8..0e787a8 100644 (file)
@@ -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
index 2a9ac42..24e5abc 100644 (file)
@@ -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 eee4eda..6aa4057 100644 (file)
--- 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