Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
b=12849
[fs/lustre-release.git]
/
lustre
/
tests
/
lkcdmap
diff --git
a/lustre/tests/lkcdmap
b/lustre/tests/lkcdmap
index
38e79c8
..
dbfd7f0
100755
(executable)
--- a/
lustre/tests/lkcdmap
+++ b/
lustre/tests/lkcdmap
@@
-3,13
+3,11
@@
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
LCMD=$TMP/lkcd-cmds-`hostname`
echo "Storing LKCD module info in $LCMD"
cat /tmp/ogdb-`hostname` | while read JUNK M JUNK; do
- DIR=`dirname $M`
- DIR=`cd $PWD/../$DIR; pwd`
- MOD="$DIR/`basename $M`"
- MAP=`echo $MOD | sed -e 's/\.o$/.map/'`
- MODNAME=`basename $M | sed -e 's/\.o$//'`
+ MOD="../$M"
+ MODNAME="`basename $MOD .o`"
+ MAP="$TMP/$MODNAME.map"
nm $MOD > $MAP
nm $MOD > $MAP
- echo namelist -a $MOD | tee -a $LCMD
+ echo namelist -a $
PWD/$
MOD | tee -a $LCMD
echo symtab -a $MAP $MODNAME | tee -a $LCMD
done
echo symtab -a $MAP $MODNAME | tee -a $LCMD
done