📄 mkldexport.sh
字号:
#!/bin/sh## mkldexport# create an AIX exports file from an object file## Usage:# mkldexport objectfile [location]# where# objectfile is the current location of the object file.# location is the eventual (installed) location of the # object file (if different from the current# working directory).## [This file comes from the Postgres 4.2 distribution. - ay 7/95]## Header: /usr/local/devel/postgres/src/tools/mkldexport/RCS/mkldexport.sh,v 1.2 1994/03/13 04:59:12 aoki Exp ## setting this to nm -B might be better# ... due to changes in AIX 4.x ...# ... let us search in different directories - Gerhard Reithoferif [ -x /usr/ucb/nm ]then NM=/usr/ucb/nmelif [ -x /usr/bin/nm ]then NM=/usr/bin/nmelif [ -x /usr/ccs/bin/nm ]then NM=/usr/ccs/bin/nmelif [ -x /usr/usg/bin/nm ]then NM=/usr/usg/bin/nmelse echo "Fatal error: cannot find `nm' ... please check your installation." exit 1fiCMDNAME=`basename $0`if [ -z "$1" ]; then echo "Usage: $CMDNAME object [location]" exit 1fiOBJNAME=`basename $1`if [ "`basename $OBJNAME`" != "`basename $OBJNAME .o`" ]; then OBJNAME=`basename $OBJNAME .o`.sofiif [ -z "$2" ]; then echo '#!'else echo '#!' $2/$OBJNAMEfi$NM -Bg $1 | \ egrep ' [TDB] ' | \ sed -e 's/.* //' | \ egrep -v '\$' | \ sed -e 's/^[.]//' | \ sort | \ uniq
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -