Merge branch 'maint'
authorStefano Lattarini <stefano.lattarini@gmail.com>
Sun, 18 Sep 2011 16:13:59 +0000 (18:13 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Sun, 18 Sep 2011 16:13:59 +0000 (18:13 +0200)
* maint:
  coverage: test interactions of `nobase_' and `nodist_'
  cosmetics: fix various typos and grammaros
  py-compile: '--' and non-option arguments terminate the option list
  py-compile: complain on unrecognized options
  py-compile: normalize error and help messages
  python tests: add "unit tests" on py-compile
  py-compile: the '--destdir' option now accepts a blank argument
  python: run the 'py-compile' script with $(SHELL)

1  2 
ChangeLog
NEWS
tests/Makefile.am
tests/Makefile.in

diff --cc ChangeLog
index b0317a6950107001a08e402bb274e59f879dc978,56a8d1ca35987a7348f6b7e269f4c795dede2e5b..c65d658ea83d234e76e00c6f341b3b7755d4b1fb
+++ b/ChangeLog
        generic hard errors.  The latter should be reserved for "real"
        set-up failures.
  
+ 2011-06-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
+       py-compile: '--' and non-option arguments terminate the option list
+       * lib/py-compile: Any non-option argument, or the special `--'
+       argument, now explicitly terminates the list of options.
+       * tests/py-compile-option-terminate.test: New test.
+       * tests/Makefile.am (TESTS): Update.
+       * NEWS: Update.
+ 2011-06-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
+       py-compile: complain on unrecognized options
+       * lib/py-compile: Complain on unrecognized options.  Don't be too
+       lax in matching `--help' and `--version' options.
+       * tests/py-compile-usage.test: Extend accordingly.
+       * NEWS: Update.
+ 2011-06-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
+       py-compile: normalize error and help messages
+       * lib/py-compile: Now error messages do not begin with a capital
+       letter, nor end with a period, as per GNU standards.  Prepend the
+       error messages with the name of the script, not with its path.
+       When an invalid usage is recognized, always display the customary
+       message "Try `py-compile --help' ..." on a line of its own.
+       ($me): New variable, containing the name of the
+       program, i.e., `py-compile'.  Use it throughout.
+       (usage_error): New function, used to display error messages about
+       invalid usage.
+       * tests/py-compile-usage.test: Extend and tighten accordingly.
+ 2011-06-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
+       python tests: add "unit tests" on py-compile
+       * tests/py-compile-basic.test: New test.
+       * tests/py-compile-basic2.test: New test.
+       * tests/py-compile-basedir.test: Likewise.
+       * tests/py-compile-destdir.test: Likewise.
+       * tests/py-compile-env.test: Likewise.
+       * tests/py-compile-usage.test: Likewise.
+       * tests/Makefile.am (TESTS): Update.
+       Tested with python 2.0.1, 2.4.6, 2.6.6, 2.7.1, and 3.1.3.
+ 2011-06-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
+       py-compile: the '--destdir' option now accepts a blank argument
+       * lib/py-compile (Option parsing): Do not count an empty argument
+       to `--destdir' or `--basedir' as a missing argument.
+       * lib/python.am: Simplify accordingly, passing the `--destdir'
+       option to py-compile unconditionally, even if `$(DESTDIR)' is
+       empty.
+       * NEWS: Update.
+ 2011-06-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
+       python: run the 'py-compile' script with $(SHELL)
+       * lib/python.am (install-%DIR%PYTHON): Run each instance of
+       py-compile using $(SHELL).  Since we are at it, break overly
+       long lines.
+       (am__py_compile): New variable, to reduce code duplication.
 +2011-06-05  Stefano Lattarini  <stefano.lattarini@gmail.com>
 +
 +      tests: fix typo-related error in auxdir2.test
 +      * tests/auxdir2.test (configure.in):  Close m4 quoting in the
 +      argument to AC_CONFIG_AUX_DIR.  Without this, aclocal fails with
 +      "ERROR: end of file in string".  This problem hasn't been exposed
 +      by the testsuite before because this test is in XFAIL_TESTS, so
 +      its failure went unnoticed, even if it was due to a wrong cause.
 +      Bug introduced in commit v1.11-249-g49ac3de.
 +
 +2011-06-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
 +
 +      maintcheck: fix some more failures
 +      * tests/instdir-ltlib.test: Use creative quoting to avoid
 +      spuriously triggering the `sc_rm_minus_f' maintainer check.
 +      * tests/instdir-prog.test: Likewise.
 +      * tests/instspc-data.test: Use creative quoting to avoid
 +      spuriously triggering the `sc_tests_Exit_not_exit' maintainer
 +      check.
 +
  2011-06-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
  
        maintcheck: fix some failures, extend some checks
diff --cc NEWS
index 60b89d5abee8a05f69cd905ff2b4be23ab5bd08b,f26b3322df75a115265256569e06afd73031f3de..08a56c0ee25b26a4dcbf435c6d2629be3ab9cbe8
--- 1/NEWS
--- 2/NEWS
+++ b/NEWS
@@@ -26,32 -18,11 +26,37 @@@ New in 1.11a
    - The `lzma' compression scheme and associated automake option `dist-lzma'
      is obsoleted by `xz' and `dist-xz' due to upstream changes.
  
 +  - "make dist" can now create lzip-compressed tarballs.
 +
 +  - You may adjust the compression options used in dist-xz and dist-bzip2.
 +    The default is still -9 for each, but you may specify a different
 +    level via the XZ_OPT and BZIP2 envvars respectively.  E.g.,
 +    "make dist-xz XZ_OPT=-7" or "make dist-xz BZIP2=-5"
 +
 +  - Messages of types warning or error from `automake' and `aclocal' are now
 +    prefixed with the respective type, and presence of -Werror is noted.
 +
 +  - The `compile' script now converts some options for MSVC for a better
 +    user experience.  Similarly, the new `ar-lib' script wraps Microsoft lib.
 +
 +  - Automake's early configure-time sanity check now tries to avoid sleeping
 +    for a second, which slowed down cached configure runs noticeably.  In that
 +    case, it will check back at the end of the configure script to ensure that
 +    at least one second has passed, to avoid time stamp issues with makefile
 +    rules rerunning autotools programs.
 +
 +  - For programs and libraries, automake now detects EXTRA_foo_DEPENDENCIES and
 +    adds them to the normal list of dependencies, but without overwriting the
 +    foo_DEPENDENCIES variable, which is normally computed by automake.
 +
 +  - C source and header files derived from non-distributed Yacc sources are
 +    now removed by "make clean", not only by "make maintainer-clean".
 +
+   - The py-compile script now accepts empty arguments passed to the options
+     `--destdir' and `--basedir', and complains about unrecognized options.
+     Moreover, a non-option argument or a special `--' argument terminates
+     the list of options.
    - A developer that needs to pass specific flags to configure at "make
      distcheck" time can now, and indeed he's advised to, do so by defining
      the developer-reserved makefile variable AM_DISTCHECK_CONFIGURE_FLAGS,
Simple merge
Simple merge