Added bash style rebuild to the lphobos dir

This commit is contained in:
Tomas Lindquist Olsen
2008-08-04 20:01:36 +02:00
parent 6fc52fd86b
commit 641523be79

10
lphobos/llvmdc-build Executable file
View File

@@ -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