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

Changeset 2060

Show
Ignore:
Timestamp:
04/15/07 19:22:09 (2 years ago)
Author:
larsivi
Message:

Minor installer fixes

Files:

Legend:

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

    r2056 r2060  
    1818 
    1919# This installer works by black magic: The following number must be the exact 
    20 # number of lines in this file+4
    21 LINES=91 
     20# number of lines in this file+3
     21LINES=93 
    2222 
    2323# Install DMD if necessary 
     
    2727    if [ ! "$1" ] 
    2828    then 
    29         echo -n "What path do you want to install DMD to?" 
     29        echo -n "What prefix do you want to install DMD to?" 
    3030        read DMDDIR 
    3131    else 
     
    3434 
    3535    export PATH="$DMDDIR/bin:$PATH" 
    36     mkdir -p $DMDDIR || die 1 "Failed to create the DMD install directory" 
     36    mkdir -p $DMDDIR/bin || die 1 "Failed to create the DMD install directory" 
    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" 
     
    8282 
    8383# Then install the rest of Tango 
    84 cd $DMDDIR || die 1 "Failed to cd to DMD's installed prefix" 
     84cd $DMDDIR/bin || die 1 "Failed to cd to DMD's installed prefix" 
    8585sed -i.bak -e 's/^DFLAGS=.*$/& libtango.a/' dmd.conf 
    8686tail -n+$LINES $FULLNAME | tar Oxf - tango.tar.gz | gunzip -c | tar xf - || 
  • trunk/install/dmd-posix/mkinstaller.sh

    r2056 r2060  
    7878# 3) Make the installer proper 
    7979( 
    80     echo -e '#!/bin/bash -x\nINST_DMD=0' ; 
     80    echo -e '#!/bin/bash\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 -x\nINST_DMD=1' ; 
     98        echo -e '#!/bin/bash\nINST_DMD=1' ; 
    9999        cat install/dmd-posix/installer.sh ; 
    100100        tar cf - core.tar.gz tango.tar.gz dmd.tar.gz