Mercurial > projects > ldc
view druntime/src/build-dmd.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 | e0b2d67cfe7c |
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 -fdmd-posix.mak || goerror make -fdmd-posix.mak || goerror chmod 644 ../import/core/*.di || goerror chmod 644 ../import/core/sync/*.di || goerror export HOME=$OLDHOME