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

Changeset 2222

Show
Ignore:
Timestamp:
05/15/07 14:19:50 (2 years ago)
Author:
larsivi
Message:

Just some extra info

Files:

Legend:

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

    r2216 r2222  
    2727# This installer works by black magic: The following number must be the exact 
    2828# number of lines in this file+3: 
    29 LINES=93 
     29LINES=112 
    3030 
    3131# Install DMD if necessary 
     
    3535    if [ ! "$1" ] 
    3636    then 
    37         echo -n "What prefix do you want to install DMD to?
     37        echo -n "What prefix do you want to install DMD to?
    3838        read DMDDIR 
    3939    else 
     
    4545    cd $DMDDIR || die 1 "Failed to cd to the DMD install directory" 
    4646    tail -n+$LINES $FULLNAME | tar Oxf - dmd.tar.gz | gunzip -c | tar xf - || die 1 "Failed to extract DMD" 
    47  
    48     if [ ! -e "bin/dmd.conf" ] 
    49     then 
    50         die 1 "Error in install, no dmd.conf found" 
    51     else 
    52         if [ ! "`grep -L-ltango bin/dmd.conf`" ] 
    53         then 
    54             sed -i.bak -e 's/^DFLAGS=.*$/& -L-ltango/' bin/dmd.conf 
    55         fi 
    56     fi 
    57  
    5847fi 
    5948 
     
    9988./install-dmd.sh > /dev/null 2> /dev/null || die 1 "Failed to install Tango core" 
    10089 
     90if [ ! -e "$DMDDIR/bin/dmd.conf" ] 
     91then 
     92    die 1 "Error in install, no dmd.conf found" 
     93else 
     94    if [ ! "`grep '\-L\-ltango' $DMDDIR/bin/dmd.conf`" ] 
     95    then 
     96        sed -i.bak -e 's/^DFLAGS=.*$/& -L-ltango/' $DMDDIR/bin/dmd.conf 
     97    fi 
     98fi 
     99 
     100 
    101101# Then install the rest of Tango 
    102 cd $DMDDIR/bin || die 1 "Failed to cd to DMD's installed prefix" 
     102cd $DMDDIR || die 1 "Failed to cd to DMD's installed prefix" 
    103103tail -n+$LINES $FULLNAME | tar Oxf - tango.tar.gz | gunzip -c | tar xf - || 
    104104    die 1 "Failed to extract Tango" 
    105105 
    106106echo 'Done!' 
     107echo "Run 'tango-dmd-tool --uninstall $DMDDIR' to uninstall Tango" 
     108 
    107109exit 0