mirror of
git://git.sv.gnu.org/autoconf
synced 2025-01-30 11:01:45 +08:00
Work around MSYS and Cygwin bugs when dealing with trailing space.
* tests/atlocal.in (func_sanitize_dir_name): Let atlocal succeed, even when platform bugs are tickled. Reported by Keith Marshall and Eric Blake.
This commit is contained in:
parent
4bd87562dc
commit
809b3e5353
@ -1,3 +1,10 @@
|
||||
2008-05-13 Stepan Kasal <kasal@ucw.cz>
|
||||
|
||||
Work around MSYS and Cygwin bugs when dealing with trailing space.
|
||||
* tests/atlocal.in (func_sanitize_dir_name): Let atlocal succeed,
|
||||
even when platform bugs are tickled.
|
||||
Reported by Keith Marshall and Eric Blake.
|
||||
|
||||
2008-05-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
|
||||
|
||||
Let AC_MSG_FAILURE report pwd.
|
||||
|
@ -44,11 +44,12 @@ else
|
||||
fi
|
||||
|
||||
# Can we create directories with trailing whitespaces in their name?
|
||||
rm -rf 'tdir /'
|
||||
mkdir 'tdir ' && touch 'tdir /tfile' 2>/dev/null
|
||||
if test -f 'tdir /tfile'; then
|
||||
func_sanitize_dir_name () { echo "$@"; }
|
||||
else
|
||||
func_sanitize_dir_name () { echo "$@" | sed 's/ *$//'; }
|
||||
fi
|
||||
rm -rf 'tdir /'
|
||||
rm -rf 'tdir ' && mkdir 'tdir ' && touch 'tdir /tfile' 2>/dev/null
|
||||
a=$?
|
||||
rm -rf 'tdir '
|
||||
case $a$? in #(
|
||||
00)
|
||||
func_sanitize_dir_name () { echo "$@"; } ;; #(
|
||||
*)
|
||||
func_sanitize_dir_name () { echo "$@" | sed 's/ *$//'; } ;;
|
||||
esac
|
||||
|
Loading…
Reference in New Issue
Block a user