#!/bin/sh
TMP=${TMP:-/tmp}
LCMD=$TMP/lkcd-cmds-`hostname`
echo "Storing LKCD module info in $LCMD"
cat /tmp/ogdb-`hostname` | while read JUNK M JUNK; do
	MOD="../$M"
	MODNAME="`basename $MOD .o`"
	MAP="$TMP/$MODNAME.map"

	nm $MOD > $MAP
	echo namelist -a $PWD/$MOD  | tee -a $LCMD
	echo symtab -a $MAP $MODNAME | tee -a $LCMD
done
