MinGW perl.
* tests/pr401b.test, tests/pr401c.test, tests/python11.test,
* tests/yacc6.test, tests/yacc8.test: Likewise.
2006-06-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+ * tests/pr401.test: Replace "perl -i" with sed and mv, for
+ MinGW perl.
+ * tests/pr401b.test, tests/pr401c.test, tests/python11.test,
+ * tests/yacc6.test, tests/yacc8.test: Likewise.
+
* m4/depout.m4 (_AM_OUTPUT_DEPENDENCY_COMMANDS): Do not use
plain `grep' on the Makefile, as its line length may exceed that
for grep. Bug report against coreutils by Sam Sirlin.
#! /bin/sh
-# Copyright (C) 2005 Free Software Foundation, Inc.
+# Copyright (C) 2005, 2006 Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
#
## Test using LIBOBJS from a sibling directory. ##
## -------------------------------------------- ##
-$PERL -pi -e 's/#: //' configure.in
-$PERL -pi -e 's/lib\/Makefile //' configure.in
+sed 's/#: //; s/lib\/Makefile //' configure.in >configure.int
+mv -f configure.int configure.in
cat >Makefile.am <<'EOF'
SUBDIRS = src
## Test using LIBOBJS from parent directory. ##
## ----------------------------------------- ##
-$PERL -pi -e 's/^.*src\/Makefile.*$//' configure.in
+sed 's/^.*src\/Makefile.*$//' configure.in >configure.int
+mv -f configure.int configure.in
cat >Makefile.am <<'EOF'
AUTOMAKE_OPTIONS = subdir-objects
#! /bin/sh
-# Copyright (C) 2005 Free Software Foundation, Inc.
+# Copyright (C) 2005, 2006 Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
#
## Test using LTLIBOBJS from a sibling directory. ##
## ---------------------------------------------- ##
-$PERL -pi -e 's/#: //' configure.in
-$PERL -pi -e 's/lib\/Makefile //' configure.in
+sed 's/#: //; s/lib\/Makefile //' configure.in >configure.int
+mv -f configure.int configure.in
cat >Makefile.am <<'EOF'
SUBDIRS = src
## Test using LTLIBOBJS from parent directory. ##
## ------------------------------------------- ##
-$PERL -pi -e 's/^.*src\/Makefile.*$//' configure.in
+sed 's/^.*src\/Makefile.*$//' configure.in >configure.int
+mv -f configure.int configure.in
cat >Makefile.am <<'EOF'
AUTOMAKE_OPTIONS = subdir-objects
#! /bin/sh
-# Copyright (C) 2005 Free Software Foundation, Inc.
+# Copyright (C) 2005, 2006 Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
#
## Test using ALLOCA from a sibling directory. ##
## ------------------------------------------- ##
-$PERL -pi -e 's/#: //' configure.in
-$PERL -pi -e 's/lib\/Makefile //' configure.in
+sed 's/#: //; s/lib\/Makefile //' configure.in >configure.int
+mv -f configure.int configure.in
cat >Makefile.am <<'EOF'
SUBDIRS = src
## Test using ALLOCA from parent directory. ##
## ---------------------------------------- ##
-$PERL -pi -e 's/^.*src\/Makefile.*$//' configure.in
+sed 's/^.*src\/Makefile.*$//' configure.in >configure.int
+mv -f configure.int configure.in
cat >Makefile.am <<'EOF'
AUTOMAKE_OPTIONS = subdir-objects
#! /bin/sh
-# Copyright (C) 2004 Free Software Foundation, Inc.
+# Copyright (C) 2004, 2006 Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
#
grep 'checking for IShouldNotExist2' stdout
grep 'no suitable Python interpreter found' stderr
-$PERL -pi -e 's/AM_PATH_PYTHON/AM_PATH_PYTHON(,,:)/' configure.in
+sed 's/AM_PATH_PYTHON/AM_PATH_PYTHON(,,:)/' configure.in >configure.int
+mv -f configure.int configure.in
$ACLOCAL
$AUTOCONF
# This one should define PYTHON as : and exit succesfully
#! /bin/sh
-# Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
+# Copyright (C) 2001, 2002, 2003, 2004, 2006 Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
#
$MAKE
$MAKE test-time-unchanged
$sleep
-$PERL -pi -e s/TOKEN/TEKON/g sub/bar.y
+sed s/TOKEN/TEKON/g sub/bar.y >sub/bar.yt
+mv -f sub/bar.yt sub/bar.y
$MAKE
$MAKE test-time-changed
#! /bin/sh
-# Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc.
+# Copyright (C) 2002, 2003, 2004, 2006 Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
#
$MAKE obj
test `ls -1t foo/parse.h z | sed 1q` = z
$sleep
-$PERL -pi -e 's/%%/%token TOKEN\n%%/g' ../foo/parse.y
+sed 's/%%/%token TOKEN\n%%/g' ../foo/parse.y >../foo/parse.yt
+mv -f ../foo/parse.yt ../foo/parse.y
$MAKE obj
test `ls -1t foo/parse.h z | sed 1q` = foo/parse.h