#!/bin/sh # * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * # * This source file is part of libspmt. * # * * # * See the file "LICENSE" for the copyright information and for * # * the terms and conditions for copying, distribution and * # * modification of this source file. * # * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * # $Date$ rm -f *~ rm -f $HOME/sablevm/src/libsablevm/*~ grep ^SPMT_PUBLIC spmt.h | cut -f3 -d' ' | sed -e "s/\*//" | grep $1 > exported.out for func in `grep ^SPMT_PUBLIC spmt.h | cut -f3 -d' ' | sed -e "s/\*//" | grep $1`; do grep -o -h $func $HOME/sablevm/src/libsablevm/* | sort | uniq; done > used.out diff -u exported.out used.out