Whamcloud - gitweb
merge b_devel into HEAD. Includes:
[fs/lustre-release.git] / lustre / tests / lkcdmap
1 #!/bin/sh
2 TMP=${TMP:-/tmp}
3 LCMD=$TMP/lkcd-cmds-`hostname`
4 echo "Storing LKCD module info in $LCMD"
5 cat /tmp/ogdb-`hostname` | while read JUNK M JUNK; do
6         MOD="../$M"
7         MAP=`echo $MOD | sed -e 's/\.o$/.map/'`
8         MODNAME=`basename $MOD | sed -e 's/\.o$//'`
9
10         nm $MOD > $MAP
11         echo namelist -a $PWD/$MOD  | tee -a $LCMD
12         echo symtab -a $PWD/$MAP $MODNAME | tee -a $LCMD
13 done