strip-llvm: Simplify stripping out the executable suffix
This commit is contained in:
1 parent
5fc9728420
commit
bf40eb86fc
1 file changed
+1
-5
+1
-5
@@ -56,11 +56,7 @@ for i in bugpoint c-index-test clang-* diagtool dsymutil git-clang-format hmapto
|
||||
basename=$i
|
||||
if [ -n "$EXEEXT" ]; then
|
||||
# Some in the list are expanded globs, some are plain names we list.
|
||||
case $i in
|
||||
*$EXEEXT)
|
||||
basename=$(echo $i | sed "s/$EXEEXT\$//")
|
||||
;;
|
||||
esac
|
||||
basename=${i%$EXEEXT}
|
||||
i=$basename
|
||||
if [ -e $basename$EXEEXT ]; then
|
||||
i=$basename$EXEEXT
|
||||
|
||||
Reference in new issue
Block a user