rust-llvm: combine do_install_append()

There were two different do_install_append()'s and they didn't check for
errors so this improves that situation.
This commit is contained in:
Doug Goldstein
2016-04-04 16:28:50 -05:00
parent 7585581323
commit 43aa07a88a
2 changed files with 4 additions and 10 deletions
+4 -4
View File
@@ -27,11 +27,11 @@ do_install_append () {
# Remove the debug info (>2 GB) as part of normal operation
rm -rf ${D}${bindir}/.debug
cd ${D}${bindir}
cd ${D}${bindir} || bbfatal "failed to cd ${D}${bindir}"
ln -s *-llc llc
for i in *-llvm-*; do
link=$(echo $i | sed -e 's/.*-llvm-\(.*\)/\1/')
ln -sf $i llvm-$link
for i in *-llvm-* *-llc *-lli *-FileCheck; do
link=$(echo $i | sed -e "s/${TARGET_SYS}-\(.*\)/\1/")
ln -sf "$i" "${link}" || bbfatal "failed to symlink ${link}"
done
}