]> git.ipfire.org Git - thirdparty/automake.git/commit
install-sh: be stricter in catching invalid usages
authorStefano Lattarini <stefano.lattarini@gmail.com>
Wed, 25 Dec 2013 23:07:27 +0000 (00:07 +0100)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Wed, 25 Dec 2013 23:07:27 +0000 (00:07 +0100)
commit222337e60bfc87456773a4c7cbbbd3192fde956d
tree4bef40969d4f02c785f08673e7558a3f5c6111e5
parent6863925ddd92c8f4b44556a2bb32d958d00325ff
install-sh: be stricter in catching invalid usages

Such usages (which are rejected by GNU install as well) are:

  - options -d and -t used together;

  - argument passed to option -t must be a directory;

  - if there are two or more SOURCEFILE arguments, the
    DESTINATION argument must be a directory.

Note that we still allow the use of options -d and -T together, by
making -d take the precedence; this is for compatibility with GNU
install.

This change fixes, among other things, automake bug#15376.

* lib/install-sh: Adjust.
* t/install-sh-unittests.sh: Enhance.
* NEWS: Update.
* THANKS: Add reporter of bug#15376.

Helped-by: Tobias Hansen <thansen@debian.org>
Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
NEWS
THANKS
lib/install-sh
t/install-sh-unittests.sh