Annotation of /branches/mage-next/usr/lib/mage/autodepend.sh
Parent Directory | Revision Log
Revision 1643 -
(hide annotations)
(download)
(as text)
Fri Jan 13 18:42:36 2012 UTC (12 years, 5 months ago) by niro
Original Path: trunk/mage/usr/lib/mage/autodepend.sh
File MIME type: application/x-sh
File size: 614 byte(s)
Fri Jan 13 18:42:36 2012 UTC (12 years, 5 months ago) by niro
Original Path: trunk/mage/usr/lib/mage/autodepend.sh
File MIME type: application/x-sh
File size: 614 byte(s)
-install more scripts (pkg_all_sources, autodepend and search_soname)
1 | niro | 1643 | #!/bin/bash |
2 | |||
3 | SCANELF="scanelf -nyRB" | ||
4 | BINDIR="$1" | ||
5 | |||
6 | build_soname_list() | ||
7 | { | ||
8 | local sonames | ||
9 | local i | ||
10 | sonames="$(${SCANELF} ${BINDIR} | cut -d' ' -f2 | sed 's:,:\ :g')" | ||
11 | |||
12 | # now drop all duplicates | ||
13 | SONAME_LIST="$(for i in ${sonames}; do echo ${i}; done | sort -u)" | ||
14 | export SONAME_LIST | ||
15 | } | ||
16 | |||
17 | build_dep_list() | ||
18 | { | ||
19 | local soname | ||
20 | local deps | ||
21 | local i | ||
22 | |||
23 | for soname in ${SONAME_LIST} | ||
24 | do | ||
25 | deps+=" $(magequery -f ${soname})" | ||
26 | done | ||
27 | DEPNAME_LIST="$(for i in ${deps}; do echo ${i}; done | sort -u)" | ||
28 | export DEPNAME_LIST | ||
29 | } | ||
30 | |||
31 | build_soname_list | ||
32 | build_dep_list | ||
33 | |||
34 | #echo "${SONAME_LIST}" | ||
35 | echo "${DEPNAME_LIST}" | sed 's:\(.*\)-r.*:>= \1:' |
Properties
Name | Value |
---|---|
svn:executable | * |