Lines 27-37
Link Here
|
27 |
local y="${D}usr/lib/debug/${x:${#D}}.debug" |
27 |
local y="${D}usr/lib/debug/${x:${#D}}.debug" |
28 |
|
28 |
|
29 |
if hasq installsources ${FEATURES} && [ -x /usr/bin/debugedit ] ; then |
29 |
if hasq installsources ${FEATURES} && [ -x /usr/bin/debugedit ] ; then |
30 |
debugedit -b "${WORKDIR}" -d /usr/src/debug/${PF} -l "${T}"/debug.sources "${x}" |
30 |
local sources_dir=/usr/src/debug/${CATEGORY}/${PF} |
|
|
31 |
debugedit -b "${WORKDIR}" -d "${sources_dir}" \ |
32 |
-l "${T}"/debug.sources "${x}" |
31 |
if [[ -s ${T}/debug.sources ]] ; then |
33 |
if [[ -s ${T}/debug.sources ]] ; then |
32 |
[[ -d ${D}/usr/src/debug/${PF} ]] || mkdir -p "${D}/usr/src/debug/${PF}" |
34 |
[[ -d ${D}${sources_dir} ]] || mkdir -p "${D}${sources_dir}" |
33 |
cat "${T}"/debug.sources | (cd "${WORKDIR}"; LANG=C sort -z -u | \ |
35 |
cat "${T}"/debug.sources | (cd "${WORKDIR}"; LANG=C sort -z -u | \ |
34 |
rsync -aL0 --files-from=- "${WORKDIR}/" "${D}/usr/src/debug/${PF}/" ) |
36 |
rsync -aL0 --files-from=- "${WORKDIR}/" "${D}${sources_dir}/" ) |
35 |
fi |
37 |
fi |
36 |
fi |
38 |
fi |
37 |
|
39 |
|