Simplify significantly (and fix syntax error).


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3730 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/utils/makellvm b/utils/makellvm
index 8924012..ad92e5a 100755
--- a/utils/makellvm
+++ b/utils/makellvm
@@ -6,20 +6,11 @@
 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)