forked from OSchip/llvm-project
Simplify significantly (and fix syntax error).
llvm-svn: 3730
This commit is contained in:
parent
9557560a9a
commit
49ffec6b39
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue