Mercurial > projects > ldc
changeset 475:423e610e20d7
Added bash style rebuild to the lphobos dir
author | Tomas Lindquist Olsen <tomas.l.olsen@gmail.com> |
---|---|
date | Mon, 04 Aug 2008 20:01:36 +0200 |
parents | 074e74c1a72b |
children | 526385b6d1fd |
files | lphobos/llvmdc-build |
diffstat | 1 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/lphobos/llvmdc-build Mon Aug 04 20:01:36 2008 +0200 @@ -0,0 +1,10 @@ +#!/bin/sh +export PATH=$PATH:/opt/llvm/bin +export FILE=$1; shift +export LLVMDC_PATH=~/llvmdc +PARAM=$(for p_file in $($LLVMDC_PATH/bin/llvmdc $FILE -I~/llvmdc/lphobos -c -v -of/dev/null |grep import \ + |sed -e "s/import *//" -e "s/\t.*//" \ + |sed -e "s/\./\//g" -e "s/$/\.d/"); do if [ -f $p_file ]; then echo $p_file; fi; done) +echo llvmdc $FILE $@ $PARAM +$LLVMDC_PATH/bin/llvmdc $FILE $@ $PARAM +Rebuild In A Shellscript