Lines 28-35
Link Here
|
28 |
# now rebuild all the correct ones |
28 |
# now rebuild all the correct ones |
29 |
for ext in so a; do |
29 |
for ext in so a; do |
30 |
for name in libdb libdb_{cxx,tcl,java,sql,stl}; do |
30 |
for name in libdb libdb_{cxx,tcl,java,sql,stl}; do |
31 |
target=`find . -maxdepth 1 -type f -name "${name}-*.${ext}" |sort -n |tail -n 1` |
31 |
target_array=( $(find . -maxdepth 1 -type f -name "${name}-*.${ext}" |sort -nr) ) |
32 |
[ -n "${target}" ] && ln -sf ${target//.\//} ${name}.${ext} |
32 |
# If ${target} is part of preserved_libs_registry, strip it from array # |
|
|
33 |
index=1 |
34 |
for target in ${target_array[@]}; do |
35 |
if [ -n "`grep "${target}" "${ROOT}/var/lib/portage/preserved_libs_registry"`" ]; then |
36 |
einfo "Found ${target} as part of preserve-rebuild set, ignoring..." |
37 |
target_array=("${target_array[@]:$index}") |
38 |
break |
39 |
fi |
40 |
let index++ |
41 |
done |
42 |
target="${target_array[0]}" |
43 |
if [ -n "${target}" ]; then |
44 |
einfo "Creating ${name}.${ext} symlinks to ${target}" |
45 |
ln -sf ${target//.\//} ${name}.${ext} |
46 |
fi |
33 |
done; |
47 |
done; |
34 |
done; |
48 |
done; |
35 |
|
49 |
|