From: Ralf Wildenhues Date: Wed, 10 May 2006 20:57:01 +0000 (+0000) Subject: * tests/mkinst3.test: Fix `mkdir' wrapper to not be confused X-Git-Tag: Release-1-9b~57 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=e112a7c197048262eb4bdb373ef10c8efe364492;p=automake.git * tests/mkinst3.test: Fix `mkdir' wrapper to not be confused if ``pwd`' contains the string `-p'. Create the wrapper in a subdirectory so that `.' in $PATH does not lead to an endless loop. --- diff --git a/ChangeLog b/ChangeLog index 0d02550d..fa126d42 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2006-05-10 Ralf Wildenhues + * tests/mkinst3.test: Fix `mkdir' wrapper to not be confused + if ``pwd`' contains the string `-p'. Create the wrapper in a + subdirectory so that `.' in $PATH does not lead to an endless + loop. + * lib/depcomp (ia64hp): Rename dependency style to.. (hp2): ..this, as it works with aCC on HPPA, too; adjust comment. Report by Olivier Fourdan (PR automake/481). diff --git a/tests/mkinst3.test b/tests/mkinst3.test index d55a94d2..268a26b2 100755 --- a/tests/mkinst3.test +++ b/tests/mkinst3.test @@ -1,5 +1,5 @@ #! /bin/sh -# Copyright (C) 2005 Free Software Foundation, Inc. +# Copyright (C) 2005, 2006 Free Software Foundation, Inc. # # This file is part of GNU Automake. # @@ -39,20 +39,24 @@ rm -rf '~a b' # Trick mkinstalldirs into thinking mkdir does not support -p. -cat >mkdir <<'EOF' +mkdir bin +cat >bin/mkdir <<'EOF' #!/bin/sh -case "$*" in - *-p*) exit 1;; -esac +for arg +do + case $arg in + -p) exit 1;; + esac +done PATH=$AM_PATH export PATH exec mkdir "$@" EOF -chmod +x mkdir +chmod +x bin/mkdir AM_PATH=$PATH export AM_PATH -PATH=`pwd`:$PATH +PATH=`pwd`/bin:$PATH export PATH # Test mkinstalldirs without mkdir -p.