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

Changeset 2056

Show
Ignore:
Timestamp:
04/15/07 18:10:25 (2 years ago)
Author:
Jim Panic
Message:

..done?

Files:

Legend:

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

    r2050 r2056  
    1919# This installer works by black magic: The following number must be the exact 
    2020# number of lines in this file+4: 
    21 LINES=92 
     21LINES=91 
    2222 
    2323# Install DMD if necessary 
     
    3737    cd $DMDDIR || die 1 "Failed to cd to the DMD install directory" 
    3838    tail -n+$LINES $FULLNAME | tar Oxf - dmd.tar.gz | gunzip -c | tar xf - || die 1 "Failed to extract DMD" 
     39 
    3940fi 
    4041 
     
    5657        OLDIPS="$IPS" 
    5758        IPS=: 
    58         for i in $PATH 
     59        for i in `echo $PATH | sed 's/:/ /g'` 
    5960        do 
    6061            if [ -e "$i/bin/dmd" ] 
     
    8283# Then install the rest of Tango 
    8384cd $DMDDIR || die 1 "Failed to cd to DMD's installed prefix" 
     85sed -i.bak -e 's/^DFLAGS=.*$/& libtango.a/' dmd.conf 
    8486tail -n+$LINES $FULLNAME | tar Oxf - tango.tar.gz | gunzip -c | tar xf - || 
    8587    die 1 "Failed to extract Tango" 
  • trunk/install/dmd-posix/mkinstaller.sh

    r2051 r2056  
    7878# 3) Make the installer proper 
    7979( 
    80     echo -e '#!/bin/bash\nINST_DMD=0' ; 
     80    echo -e '#!/bin/bash -x\nINST_DMD=0' ; 
    8181    cat install/dmd-posix/installer.sh ; 
    8282    tar cf - core.tar.gz tango.tar.gz 
     
    9696 
    9797    ( 
    98         echo -e '#!/bin/bash\nINST_DMD=1' ; 
     98        echo -e '#!/bin/bash -x\nINST_DMD=1' ; 
    9999        cat install/dmd-posix/installer.sh ; 
    100100        tar cf - core.tar.gz tango.tar.gz dmd.tar.gz 
  • trunk/lib/install-dmd.sh

    r2055 r2056  
    137137    cat > $PREFIX/bin/dmd.conf <<EOF 
    138138[Environment] 
    139 DFLAGS=-I$PREFIX/import/ -version=Tango -version=Posix 
     139LIB="%@P%/../lib 
     140DFLAGS=-I$PREFIX/import/$DMD_VER -version=Tango -version=Posix 
    140141EOF 
    141142fi