Skip to content
Extraits de code Groupes Projets
Sélectionner une révision Git
  • f16b14bf3d324e8cd6ec4b8ef4b9254f8887848d
  • master par défaut protégée
  • menu
3 résultats

test1.meta

Blame
  • munch 602 o
    #!/bin/sh
    
    # create an initialization table from a list of .o files
    # use for linux for other machines,
    # rename the appropriate munch.XXXX files to be munch
    
    pattern=$1
    shift
    
    nm $* > munch.temp
    
    echo '#include <p2c/p2c.h>'
    echo '#include "logstuff.h"'
    echo ''
    echo '/* Do not modify this file.  It is created automatically by "munch". */'
    echo ''
    sed -n -e 's/^[^U]*[_ ]\('$pattern'\).*$/extern void \1();/p' munch.temp | sort
    echo ''
    echo 'struct ext_proc ext_proc_table[] = {'
    cat munch.temp | sed -n -e 's/^[^U]*[_ ]\('$pattern'\).*$/ \{"\1", \1\},/p' | sort
    echo '{NULL, NULL}'
    echo '};'
    echo ''