Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Changeset 1574

Show
Ignore:
Timestamp:
01/31/07 23:03:05 (2 years ago)
Author:
Gregor
Message:

install/gdc-posix/installer.sh: Slightly less buggy.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/install/gdc-posix/installer.sh

    r1556 r1574  
    1919# This installer works by black magic: The following number must be the exact 
    2020# number of lines in this file+4: 
    21 LINES=9
     21LINES=10
    2222 
    2323# Install GDC if necessary 
     
    5454    else 
    5555        # Get our proper GDC prefix 
    56         GDCDIR="`/opt/gdc/bin/gdc -print-search-dirs | grep '^install:' | sed 's/install: //'`/../../../.." 
     56        OLDIPS="$IPS" 
     57        IPS=: 
     58        for i in $PATH 
     59        do 
     60            if [ -e "$i/bin/gdc" ] 
     61            then 
     62                GDCDIR="$i" 
     63                break 
     64            fi 
     65        done 
     66        IPS="$OLDIPS" 
    5767    fi 
    5868fi