+Fri Jul 17 12:56:14 1998 Tom Tromey <tromey@cygnus.com>
+
+ * automake.in (scan_dependency_file): Recognize DOS-style paths as
+ absolute.
+ * ylwrap: Recognize DOS-style paths as absolute. From Ian Lance
+ Taylor.
+
Fri Jul 17 07:37:20 1998 H.J. Lu (hjl@gnu.org)
* ylwrap: Don't use absolute path if the input is in the
($xform = $one_dep) =~ s/^$srcdir_rx/$rewrite_builddir/;
push (@dependencies, $xform);
}
- elsif ($one_dep =~ /^\//)
+ elsif ($one_dep =~ /^\// || $one_dep =~ /^[A-Za-z]:\\/)
{
# Absolute path; ignore.
}
#! /bin/sh
# ylwrap - wrapper for lex/yacc invocations.
-# Copyright (C) 1996, 1997 Free Software Foundation, Inc.
+# Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc.
# Written by Tom Tromey <tromey@cygnus.com>.
#
# This program is free software; you can redistribute it and/or modify
shift
# Make any relative path in $prog absolute.
case "$prog" in
- /*) ;;
+ /* | [A-Za-z]:\\*) ;;
*/*) prog="`pwd`/$prog" ;;
esac
input="$1"
shift
case "$input" in
- /*)
+ /* | [A-Za-z]:\\*)
# Absolute path; do nothing.
;;
*)
cd $dirname
case "$input" in
- /*)
+ /* | [A-Za-z]:\\*)
# Absolute path; do nothing.
;;
*)
# If $2 is an absolute path name, then just use that,
# otherwise prepend `../'.
case "$2" in
- /*) target="$2";;
+ /* | [A-Za-z]:\\*) target="$2";;
*) target="../$2";;
esac
mv "$1" "$target" || status=$?
#! /bin/sh
# ylwrap - wrapper for lex/yacc invocations.
-# Copyright (C) 1996, 1997 Free Software Foundation, Inc.
+# Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc.
# Written by Tom Tromey <tromey@cygnus.com>.
#
# This program is free software; you can redistribute it and/or modify
shift
# Make any relative path in $prog absolute.
case "$prog" in
- /*) ;;
+ /* | [A-Za-z]:\\*) ;;
*/*) prog="`pwd`/$prog" ;;
esac
input="$1"
shift
case "$input" in
- /*)
+ /* | [A-Za-z]:\\*)
# Absolute path; do nothing.
;;
*)
cd $dirname
case "$input" in
- /*)
+ /* | [A-Za-z]:\\*)
# Absolute path; do nothing.
;;
*)
# If $2 is an absolute path name, then just use that,
# otherwise prepend `../'.
case "$2" in
- /*) target="$2";;
+ /* | [A-Za-z]:\\*) target="$2";;
*) target="../$2";;
esac
mv "$1" "$target" || status=$?