Ignore:
Timestamp:
Dec 16, 2003, 11:20:00 PM (22 years ago)
Author:
bird
Message:

Fixed abs path checks to include both slashes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/binutils/ylwrap

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r908 r909  
    3232# Make any relative path in $prog absolute.
    3333case "$prog" in
    34  /* | [A-Za-z]:\\*) ;;
     34 /* | [A-Za-z]:[\\/]*) ;;
    3535 */*) prog="`pwd`/$prog" ;;
    3636esac
     
    4040shift
    4141case "$input" in
    42  /* | [A-Za-z]:\\*)
     42 /* | [A-Za-z]:[\\/]*)
    4343    # Absolute path; do nothing.
    4444    ;;
     
    7676cd $dirname
    7777case "$input" in
    78  /* | [A-Za-z]:\\*)
     78 /* | [A-Za-z]:[\\/]*)
    7979    # Absolute path; do nothing.
    8080    ;;
     
    9696         # otherwise prepend `../'.
    9797         case "$2" in
    98            /* | [A-Za-z]:\\*) target="$2";;
     98           /* | [A-Za-z]:[\\/]*) target="$2";;
    9999           *) target="../$2";;
    100100         esac
Note: See TracChangeset for help on using the changeset viewer.