Rev 4753 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
#!/bin/sh## ${RHOME}/tools/GETSYMBOLS# This code assembles the table of statically loaded C and Fortran# code which is to be accessed via .C and .Fortran calls.AUXDIR=`echo $0 | sed 's%/[^/][^/]*$%%'`ROUTINES=${AUXDIR}/../src/appl/ROUTINEStmpROUT=/tmp/ROUTINES$$##-- Allow "#" comments in ../src/appl/ROUTINES :sed '/^#/d/#/s/#.*//' ${ROUTINES} > ${tmpROUT}sed 's/F77_SUBROUTINE(\(.*\))/int F77_SYMBOL(\1)();/s/C_FUNCTION(\(.*\))/int \1();/' ${tmpROUT} > /tmp/FFDecl.h${AUXDIR}/move-if-change /tmp/FFDecl.h FFDecl.hsed 's/F77_SUBROUTINE(\(.*\))/ { F77_QSYMBOL(\1), F77_SYMBOL(\1)},/s/C_FUNCTION(\(.*\))/ { "\1", \1 },/' ${tmpROUT} > /tmp/FFTab.h${AUXDIR}/move-if-change /tmp/FFTab.h FFTab.hrm -f ${tmpROUT}