aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-12-03 08:01:45 +0000
committerMike Frysinger <vapier@gentoo.org>2009-12-03 08:01:45 +0000
commitb50a4830faad08ce05a42f3cbbad87f2f62aca83 (patch)
tree5bbd5c1cab1810e2c1998e556a320c15b065c122 /symtree.sh
parenttodo: handle versioned symbols better (diff)
downloadpax-utils-b50a4830faad08ce05a42f3cbbad87f2f62aca83.tar.gz
pax-utils-b50a4830faad08ce05a42f3cbbad87f2f62aca83.tar.bz2
pax-utils-b50a4830faad08ce05a42f3cbbad87f2f62aca83.zip
split out, simplify, and document the extended version matching code
Diffstat (limited to 'symtree.sh')
-rwxr-xr-xsymtree.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/symtree.sh b/symtree.sh
index 64a3333..d34d082 100755
--- a/symtree.sh
+++ b/symtree.sh
@@ -20,7 +20,7 @@ usage() {
sym_list() {
# with large strings, bash is much slower than sed
local type=$1; shift
- echo "%%~"`echo ",$@" | sed "s:,:,%${type}%:g"`
+ echo "%${type}%$@" | sed "s:,:,%${type}%:g"
}
show_elf() {
local elf=$1
@@ -32,7 +32,7 @@ show_elf() {
libs=$(scanelf -qF '#F%n' "${resolved}")
local u uu d dd
- u=$(scanelf -q -F'#s#F' -s'%u%' "${elf}")
+ u=$(scanelf -q -F'%s#F' -s'%u%' "${elf}")
for lib in ${libs//,/ } ; do
lib=${lib##*/}
rlib=$(find_elf "${lib}" "${resolved}")