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

Changeset 1962

Show
Ignore:
Timestamp:
03/25/07 12:07:22 (2 years ago)
Author:
sean
Message:

Fixing a bug dpc reported in chat.

Files:

Legend:

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

    r1912 r1962  
    1414# 1. The origin of this software must not be misrepresented; you must not claim 
    1515#    that you wrote the original software. If you use this software in a 
    16 #    product, an acknowledgment in the product documentation would be  
     16#    product, an acknowledgment in the product documentation would be 
    1717#    appreciated but is not required. 
    1818# 
     
    251251        cd ../ 
    252252    fi 
    253      
     253 
    254254    if [ -f "${PREFIX}/lib/libphobos.a" ] 
    255255    then 
     
    304304    rm -rf tango || die 1 "Error while cleaning up." 
    305305} 
    306      
     306 
    307307cleanup_dmd() { 
    308308    echo "Cleaning up tango/trunk/dmd/..." 
     
    338338## TO BE DONE ## 
    339339#uninstall_tango() { 
    340      
     340 
    341341#} 
    342342 
     
    360360fi 
    361361 
    362 if [ -z `"echo ${PREFIX} | grep '^/'"`
     362if [ -z "`echo ${PREFIX} | grep '^/'`"
    363363then 
    364364    PREFIX="`pwd`${PREFIX}" 
     
    366366 
    367367# Check for flags 
    368 for i in $*;  
     368for i in $*; 
    369369do 
    370370    case "$i" in 
     
    400400        --version=*) 
    401401            # This version is /not/ 1.0 ready (only supporting 0.123 thingies) 
    402             VERSION=`echo -n "${i}" | sed -n 's/^--version=[0-9]\?\.\?\([0-9]\{3\}\)/\1/p'`  
     402            VERSION=`echo -n "${i}" | sed -n 's/^--version=[0-9]\?\.\?\([0-9]\{3\}\)/\1/p'` 
    403403 
    404404            # Don't use this one yet - it isn't tested... 
    405405            #VERSION=`echo -n "${i}" | sed -n 's/^--version=\(\([1-9]\{1\}\)\.\{1\}\([0-9]\{1,3\}\)|\([0-9]\?\.\?\([0-9]\{3\}\)\)\)/\1/p'` 
    406              
     406 
    407407            if [  -n "${VERSION}" ] 
    408408            then