On 2012-03-08 15:06, Jakub Wilk wrote:
| * Jari Aalto <[email protected]>, 2012-03-08, 02:23:
| >- $ objdump -p /path/to/libfoo-bar.so.1.2.3 | sed -n
-e's/^[[:space:]]*SONAME[[:space:]]*//p' | sed -e's/\([0-9]\)\.so\./\1-/;
s/\.so\.//'
| >+ $ objdump -p /path/to/libfoo-bar.so.1.2.3 |
| >+ awk '/SONAME/ {sub("[.]so[.]",""); sub("[.][0-9.]+",""); print $2;
exit}'
|
| This is incorrect.
Would you give an SONAME example, so that it can be
improved. According to test:
# "objdump -p" output
soname=" SONAME liblrzip.so.0"
# (1)
echo $soname |
awk '/SONAME/ {sub("[.]so[.]",""); sub("[.][0-9.]+",""); print $2; exit}'
# => liblrzip0
# (2)
echo $soname |
sed -n -e's/^[[:space:]]*SONAME[[:space:]]*//p' |
sed -e's/\([0-9]\)\.so\./\1-/; s/\.so\.//'
# => liblrzip0
Jari
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: http://lists.debian.org/[email protected]