diff options
author | Vikram S. Adve <vadve@cs.uiuc.edu> | 2002-09-15 18:22:47 +0000 |
---|---|---|
committer | Vikram S. Adve <vadve@cs.uiuc.edu> | 2002-09-15 18:22:47 +0000 |
commit | 2d456601d81d952e2b2e68748389334946e70a40 (patch) | |
tree | 5d0ccd520b234426aa9b34ace4cd579ad7a4c9cb /utils | |
parent | 0731d5491b673b37861330a9fa52b9a30ad5b44b (diff) |
Simplify significantly (and fix syntax error).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3730 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rwxr-xr-x | utils/makellvm | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/utils/makellvm b/utils/makellvm index 8924012203..ad92e5ac64 100755 --- a/utils/makellvm +++ b/utils/makellvm @@ -6,20 +6,11 @@ set LLVMDIR = $THISEXEC:h set EXEC = opt if ($#argv > 0) then - if (&& $argv[1] == "-h") then + if ($argv[1] == "-h") then echo 'USAGE: makellvm [toolname] (toolname defaults to "opt").' exit 0 endif - - set EXEC = NO_SUCH_TOOL - set TOOLS = `grep DIRS ${LLVMDIR}/tools/Makefile | sed 's/DIRS[ ]*=[ ]*//'` - foreach T ( $TOOLS ) - if ($argv[1] == "$T") then - set EXEC = $T - shift argv - break - endif - end + set EXEC = $argv[1] endif gnumake && (cd $LLVMDIR/tools/$EXEC && gnumake) |