/[bison]/bison/config/depcomp
ViewVC logotype

Diff of /bison/config/depcomp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by akim, Thu Mar 14 18:31:13 2002 UTC revision 1.4 by akim, Fri Jun 14 17:35:45 2002 UTC
# Line 31  if test -z "$depmode" || test -z "$sourc Line 31  if test -z "$depmode" || test -z "$sourc
31  fi  fi
32  # `libtool' can also be set to `yes' or `no'.  # `libtool' can also be set to `yes' or `no'.
33    
34  if test -z "$depfile"; then  depfile=${depfile-`echo "$object" | sed 's,\([^/]*\)$,.deps/\1,;s/\.\([^.]*\)$/.P\1/'`}
    base=`echo "$object" | sed -e 's,^.*/,,' -e 's,\.\([^.]*\)$,.P\1,'`  
    dir=`echo "$object" | sed 's,/.*$,/,'`  
    if test "$dir" = "$object"; then  
       dir=  
    fi  
    # FIXME: should be _deps on DOS.  
    depfile="$dir.deps/$base"  
 fi  
   
35  tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}  tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
36    
37  rm -f "$tmpdepfile"  rm -f "$tmpdepfile"
# Line 213  tru64) Line 204  tru64)
204     # dependencies in `foo.d' instead, so we check for that too.     # dependencies in `foo.d' instead, so we check for that too.
205     # Subdirectories are respected.     # Subdirectories are respected.
206    
207     base=`echo "$object" | sed -e 's/\.o$/.d/' -e 's/\.lo$/.d/'`     tmpdepfile1="$object.d"
208     tmpdepfile1="$base.o.d"     tmpdepfile2=`echo "$object" | sed -e 's/.o$/.d/'`
    tmpdepfile2="$base.d"  
209     if test "$libtool" = yes; then     if test "$libtool" = yes; then
210        "$@" -Wc,-MD        "$@" -Wc,-MD
211     else     else
# Line 324  makedepend) Line 314  makedepend)
314    if test "$stat" != 0; then exit $stat; fi    if test "$stat" != 0; then exit $stat; fi
315    rm -f "$depfile"    rm -f "$depfile"
316    cat < "$tmpdepfile" > "$depfile"    cat < "$tmpdepfile" > "$depfile"
317    sed '1,2d' "$tmpdepfile" | tr ' ' '    tail +3 "$tmpdepfile" | tr ' ' '
318  ' | \  ' | \
319  ## Some versions of the HPUX 10.20 sed can't process this invocation  ## Some versions of the HPUX 10.20 sed can't process this invocation
320  ## correctly.  Breaking it into two sed invocations is a workaround.  ## correctly.  Breaking it into two sed invocations is a workaround.
# Line 392  msvisualcpp) Line 382  msvisualcpp)
382        done        done
383        ;;        ;;
384      esac      esac
     for arg  
     do  
       case "$arg" in  
       "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")  
         set fnord "$@"  
         shift  
         shift  
         ;;  
       *)  
         set fnord "$@" "$arg"  
         shift  
         shift  
         ;;  
       esac  
     done  
385      "$@" -E |      "$@" -E |
386      sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile"      sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile"
387    ) &    ) &

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26