* rmsym: Fix regular expression.

This commit is contained in:
Corinna Vinschen 2003-03-09 17:13:46 +00:00
parent 6e0465c6bc
commit 639ebe297b
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2003-03-09 Corinna Vinschen <corinna@vinschen.de>
* rmsym: Fix regular expression.
2003-03-09 Christopher Faylor <cgf@redhat.com>
* Makefile.in: Change from using new-* to cygwin0 for temporary

View File

@ -3,8 +3,8 @@ lib=$1; shift
nm=$1; shift
ar=$1; shift
ranlib=$1; shift
grepit=`echo $* | sed 's/ /|__imp__/g'`
[ -n "$grepit" ] && grepit="__imp__$grepit"
grepit=`echo $* | sed 's/ /\$|__imp__/g'`
[ -n "$grepit" ] && grepit="__imp__$grepit\$"
objs=`$nm $lib | awk -F: '/^d[0-9]*.o:/ {obj=$1} '"/$grepit/"'{print obj}'`
[ -n "$objs" ] || exit 1
$ar d $lib $objs