fix prepstrip after previous commit as pointed out by Olivier Crete
authorMike Frysinger <vapier@gentoo.org>
Mon, 23 Jan 2006 22:39:05 +0000 (22:39 -0000)
committerMike Frysinger <vapier@gentoo.org>
Mon, 23 Jan 2006 22:39:05 +0000 (22:39 -0000)
svn path=/main/trunk/; revision=2576

bin/prepstrip

index 7d4ea303b8b53bd9c5eb265166219ad216545b16..b480cffa1f02cd457cb5e9995954399bd9e24a17 100755 (executable)
@@ -37,8 +37,8 @@ save_elf_debug() {
        if [[ -x "/usr/bin/debugedit" ]] ; then
                debugedit -b "${WORKDIR}" -d /usr/src/debug/${PF} -l "${T}"/debug.sources "${x}"
                if [[ -s ${T}/debug.sources ]] ; then 
-                       [[ -d ${D}/usr/src/debug/${P} ]] || mkdir -p "${D}/usr/src/debug/${PF}"
-                       cat "${T}"/debug.sources | (cd "${WORKDIR}"; LANG=C sort -z -u | xargs -0 -- cp --parents -p --target-directory="${D}/usr/src/debug/${P}" )
+                       [[ -d ${D}/usr/src/debug/${PF} ]] || mkdir -p "${D}/usr/src/debug/${PF}"
+                       cat "${T}"/debug.sources | (cd "${WORKDIR}"; LANG=C sort -z -u | xargs -0 -- cp --parents -p --target-directory="${D}/usr/src/debug/${PF}" )
                fi
        fi
 }