Commit 87cf27fe by Laurynas Biveinis Committed by Jeff Law

* fixproto: Recognize DOS paths with drive letters as absolute paths.

From-SVN: r35636
parent 25698887
2000-08-11 Laurynas Biveinis <lauras@softhome.net>
* fixproto: Recognize DOS paths with drive letters as absolute paths.
2000-08-11 Nathan Sidwell <nathan@codesourcery.com> 2000-08-11 Nathan Sidwell <nathan@codesourcery.com>
* extend.texi (Volatiles): Fix typos. * extend.texi (Volatiles): Fix typos.
......
...@@ -90,11 +90,14 @@ src_dir_all=$2 ...@@ -90,11 +90,14 @@ src_dir_all=$2
# "standard" ANSI/POSIX files listed in $std_files are processed. # "standard" ANSI/POSIX files listed in $std_files are processed.
src_dir_std=$3 src_dir_std=$3
if [ `expr $rel_target_dir : '\(.\)'` != '/' ] ; then case $rel_target_dir in
abs_target_dir=$original_dir/$rel_target_dir /* | [A-Za-z]:[\\/]*)
else
abs_target_dir=$rel_target_dir abs_target_dir=$rel_target_dir
fi ;;
*)
abs_target_dir=$original_dir/$rel_target_dir
;;
esac
# Determine whether this system has symbolic links. # Determine whether this system has symbolic links.
if ln -s X $rel_target_dir/ShouldNotExist 2>/dev/null; then if ln -s X $rel_target_dir/ShouldNotExist 2>/dev/null; then
...@@ -118,11 +121,14 @@ include_path="" ...@@ -118,11 +121,14 @@ include_path=""
if [ `echo $* | wc -w` != 0 ] ; then if [ `echo $* | wc -w` != 0 ] ; then
for rel_source_dir in $src_dir_all $src_dir_std; do for rel_source_dir in $src_dir_all $src_dir_std; do
if [ `expr $rel_source_dir : '\(.\)'` != '/' ] ; then case $rel_source_dir in
abs_source_dir=$original_dir/$rel_source_dir /* | [A-Za-z]:[\\/]*)
else
abs_source_dir=$rel_source_dir abs_source_dir=$rel_source_dir
fi ;;
*)
abs_source_dir=$original_dir/$rel_source_dir
;;
esac
include_path="$include_path -I$abs_source_dir" include_path="$include_path -I$abs_source_dir"
done done
fi fi
...@@ -175,11 +181,14 @@ for code in ALL STD ; do ...@@ -175,11 +181,14 @@ for code in ALL STD ; do
;; ;;
esac esac
if [ `expr $rel_source_dir : '\(.\)'` != '/' ] ; then case $rel_source_dir in
abs_source_dir=$original_dir/$rel_source_dir /* | [A-Za-z]:[\\/]*)
else
abs_source_dir=$rel_source_dir abs_source_dir=$rel_source_dir
fi ;;
*)
abs_source_dir=$original_dir/$rel_source_dir
;;
esac
if [ \! -d $abs_source_dir ] ; then if [ \! -d $abs_source_dir ] ; then
echo $progname\: warning\: no such directory\: \`$rel_source_dir\' echo $progname\: warning\: no such directory\: \`$rel_source_dir\'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment