Changeset 0e2190 for util/depcomp


Ignore:
Timestamp:
Aug 3, 2009, 6:58:46 PM (16 years ago)
Author:
Frederik Heber <heber@…>
Children:
f4a346
Parents:
4e4940 (diff), e8de2e (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'ConcaveHull' of ssh://heber@192.168.194.2/home/metzler/workspace/espack into ConcaveHull

Conflicts:

molecuilder/src/atom.cpp
molecuilder/src/boundary.cpp
molecuilder/src/boundary.hpp
molecuilder/src/linkedcell.cpp
molecuilder/src/linkedcell.hpp
molecuilder/src/molecules.hpp
molecuilder/src/vector.hpp

  • added Saskia Metzler's code that finds whether a point is in- or outside.
  • The code is not yet incorporated, but I rather want to continue with merging TesselationRefactoring first.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • util/depcomp

    r4e4940 r0e2190  
    22# depcomp - compile a program generating dependencies as side-effects
    33
    4 scriptversion=2007-03-29.01
    5 
    6 # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007 Free Software
     4scriptversion=2006-10-15.18
     5
     6# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006 Free Software
    77# Foundation, Inc.
    88
     
    216216  # start of each line; $object doesn't have directory information.
    217217  # Version 6 uses the directory in both cases.
    218   dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
    219   test "x$dir" = "x$object" && dir=
    220   base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
     218  stripped=`echo "$object" | sed 's/\(.*\)\..*$/\1/'`
     219  tmpdepfile="$stripped.u"
    221220  if test "$libtool" = yes; then
    222     tmpdepfile1=$dir$base.u
    223     tmpdepfile2=$base.u
    224     tmpdepfile3=$dir.libs/$base.u
    225221    "$@" -Wc,-M
    226222  else
    227     tmpdepfile1=$dir$base.u
    228     tmpdepfile2=$dir$base.u
    229     tmpdepfile3=$dir$base.u
    230223    "$@" -M
    231224  fi
    232225  stat=$?
    233226
     227  if test -f "$tmpdepfile"; then :
     228  else
     229    stripped=`echo "$stripped" | sed 's,^.*/,,'`
     230    tmpdepfile="$stripped.u"
     231  fi
     232
    234233  if test $stat -eq 0; then :
    235234  else
    236     rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
     235    rm -f "$tmpdepfile"
    237236    exit $stat
    238237  fi
    239238
    240   for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
    241   do
    242     test -f "$tmpdepfile" && break
    243   done
    244239  if test -f "$tmpdepfile"; then
     240    outname="$stripped.o"
    245241    # Each line is of the form `foo.o: dependent.h'.
    246242    # Do two passes, one to just change these to
    247243    # `$object: dependent.h' and one to simply `dependent.h:'.
    248     sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
    249     # That's a tab and a space in the [].
    250     sed -e 's,^.*\.[a-z]*:[      ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
     244    sed -e "s,^$outname:,$object :," < "$tmpdepfile" > "$depfile"
     245    sed -e "s,^$outname: \(.*\)$,\1:," < "$tmpdepfile" >> "$depfile"
    251246  else
    252247    # The sourcefile does not contain any dependencies, so just
Note: See TracChangeset for help on using the changeset viewer.