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
|
basename=$i
|
||||||
if [ -n "$EXEEXT" ]; then
|
if [ -n "$EXEEXT" ]; then
|
||||||
# Some in the list are expanded globs, some are plain names we list.
|
# Some in the list are expanded globs, some are plain names we list.
|
||||||
case $i in
|
basename=${i%$EXEEXT}
|
||||||
*$EXEEXT)
|
|
||||||
basename=$(echo $i | sed "s/$EXEEXT\$//")
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
i=$basename
|
i=$basename
|
||||||
if [ -e $basename$EXEEXT ]; then
|
if [ -e $basename$EXEEXT ]; then
|
||||||
i=$basename$EXEEXT
|
i=$basename$EXEEXT
|
||||||
|
|||||||
Reference in new issue
Block a user