view druntime/src/build-ldc.sh @ 1471:230765fc82f4

Emit nicer error messages when the user didn't set LLVM_REV and autodetection didn't find a suitable revision or when the LLVM revision in use is too old.
author Frits van Bommel <fvbommel wxs.nl>
date Wed, 03 Jun 2009 16:09:48 +0200
parents da3262e901b4
children
line wrap: on
line source

#!/usr/bin/env bash

OLDHOME=$HOME
export HOME=`pwd`

goerror(){
    export HOME=$OLDHOME
    echo "="
    echo "= *** Error ***"
    echo "="
    exit 1
}

make clean -fldc-posix.mak          || goerror
make -fldc-posix.mak                || goerror
chmod 644 ../import/core/*.di       || goerror
chmod 644 ../import/core/sync/*.di  || goerror

export HOME=$OLDHOME