view lphobos/llvmdc-build @ 604:a30fc28e8f23

Make creating and deleting of doc and hdr files dependent on whether doc and hdr files are to be generated. Fixes html_empty_01,02
author Christian Kamm <kamm incasoftware de>
date Tue, 16 Sep 2008 09:00:05 +0200
parents 526385b6d1fd
children 6aaa3d3c1183
line wrap: on
line source

#!/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