annotate lphobos/llvmdc-build @ 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
children 526385b6d1fd
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
475
423e610e20d7 Added bash style rebuild to the lphobos dir
Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
parents:
diff changeset
1 #!/bin/sh
423e610e20d7 Added bash style rebuild to the lphobos dir
Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
parents:
diff changeset
2 export PATH=$PATH:/opt/llvm/bin
423e610e20d7 Added bash style rebuild to the lphobos dir
Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
parents:
diff changeset
3 export FILE=$1; shift
423e610e20d7 Added bash style rebuild to the lphobos dir
Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
parents:
diff changeset
4 export LLVMDC_PATH=~/llvmdc
423e610e20d7 Added bash style rebuild to the lphobos dir
Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
parents:
diff changeset
5 PARAM=$(for p_file in $($LLVMDC_PATH/bin/llvmdc $FILE -I~/llvmdc/lphobos -c -v -of/dev/null |grep import \
423e610e20d7 Added bash style rebuild to the lphobos dir
Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
parents:
diff changeset
6 |sed -e "s/import *//" -e "s/\t.*//" \
423e610e20d7 Added bash style rebuild to the lphobos dir
Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
parents:
diff changeset
7 |sed -e "s/\./\//g" -e "s/$/\.d/"); do if [ -f $p_file ]; then echo $p_file; fi; done)
423e610e20d7 Added bash style rebuild to the lphobos dir
Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
parents:
diff changeset
8 echo llvmdc $FILE $@ $PARAM
423e610e20d7 Added bash style rebuild to the lphobos dir
Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
parents:
diff changeset
9 $LLVMDC_PATH/bin/llvmdc $FILE $@ $PARAM
423e610e20d7 Added bash style rebuild to the lphobos dir
Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
parents:
diff changeset
10 Rebuild In A Shellscript