Rev 4496 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
#!/bin/sh#R=${R:-R-patched}if [ x$R_HOME = x ] ; then R_HOME=`$R RHOME`; fiRINC=${R_HOME}/include#MatrixDir=`dirname $0`; cd $MatrixDir; MatrixDir=`pwd`if [ ! -d $MatrixDir ]then echo "no directory '$MatrixDir' .. exiting"; exit 3ficd $MatrixDir## CHOLMOD has one include for which gcc -MM fails below:FIX=CHOLMOD/Include/cholmod.hif [ -f $FIX ]thensed '/^#include "UFconfig/s/\(.*\)/\/* \1 *\//' $FIX > ${FIX}_fixedmv $FIX ${FIX}_origmv ${FIX}_fixed $FIXfi## __end fix__out=DEPS.mkf_automadegcc -I$RINC -MM *.c | perl -pe "s{$RINC/[^.]*.h( \\\\\\n)?}{}g" > $out# ^^^ ~~~if [ -f ${FIX}_orig ] ; then mv ${FIX}_orig $FIX ; fiecho ''; echo "$0 done. Resulting file is $MatrixDir/$out"