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

Changeset 3216

Show
Ignore:
Timestamp:
02/17/08 15:57:20 (9 months ago)
Author:
Gregor
Message:

lib/build-gdc.sh: $GDC, $GDMD, $GDC_PREFIX, $GDC_POSTFIX may now be provided as environment variables to configure the version of GDC to build against.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/build-gdc.sh

    r3179 r3216  
    22cd "`dirname $0`" 
    33 
    4 GDC_VER="`gdc --version | grep 'gdc' | sed 's/^.*gdc \([0-9]*\.[0-9]*\).*$/\1/'`" 
     4# Allow gdc and gdmd to be overriden 
     5if [ "$GDC" = "" ] 
     6then 
     7    export GDC=${GDC_PREFIX}gdc${GDC_POSTFIX} 
     8fi 
     9if [ "$GDMD" = "" ] 
     10then 
     11    export GDMD=${GDC_PREFIX}gdmd${GDC_POSTFIX} 
     12fi 
     13 
     14GDC_VER="`$GDC --version | grep 'gdc' | sed 's/^.*gdc \([0-9]*\.[0-9]*\).*$/\1/'`" 
    515GDC_MAJOR="`echo $GDC_VER | sed 's/\..*//'`" 
    616GDC_MINOR="`echo $GDC_VER | sed 's/.*\.//'`" 
     
    4555OLDHOME=$HOME 
    4656export HOME=`pwd` 
    47 $MAKE clean -fgdc-posix.mak || exit 1 
    48 $MAKE lib doc install -fgdc-posix.mak ADD_CFLAGS="$ADD_CFLAGS" || exit 1 
    49 $MAKE clean -fgdc-posix.mak || exit 1 
     57$MAKE clean -fgdc-posix.mak DC="$GDMD" || exit 1 
     58$MAKE lib doc install -fgdc-posix.mak DC="$GDMD" ADD_CFLAGS="$ADD_CFLAGS" || exit 1 
     59$MAKE clean -fgdc-posix.mak DC="$GDMD" || exit 1 
    5060chmod 644 ../tango/core/*.di || exit 1 
    5161