Filter paths matching '/<built-in>$' that come from debugedit. Thanks to Ed Catmur...
authorZac Medico <zmedico@gentoo.org>
Fri, 23 Feb 2007 23:21:28 +0000 (23:21 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 23 Feb 2007 23:21:28 +0000 (23:21 -0000)
svn path=/main/branches/2.1.2/; revision=6061

bin/prepstrip

index 1ff4c0d28e59608183831ecee647f7b79e176ebf..d903a649eb452bb89c5b22bb03a42209db7bfd2b 100755 (executable)
@@ -32,7 +32,8 @@ save_elf_debug() {
                        -l "${T}"/debug.sources "${x}"
                if [[ -s ${T}/debug.sources ]] ; then 
                        [[ -d ${D}${sources_dir} ]] || mkdir -p "${D}${sources_dir}"
-                       cat "${T}"/debug.sources | (cd "${WORKDIR}"; LANG=C sort -z -u | \
+                       grep -zv '/<built-in>$' "${T}"/debug.sources | \
+                               (cd "${WORKDIR}"; LANG=C sort -z -u | \
                                rsync -rtL0 --files-from=- "${WORKDIR}/" "${D}${sources_dir}/" )
                fi
        fi