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
|
set EXEC = opt
|
||||||
|
|
||||||
if ($#argv > 0) then
|
if ($#argv > 0) then
|
||||||
if (&& $argv[1] == "-h") then
|
if ($argv[1] == "-h") then
|
||||||
echo 'USAGE: makellvm [toolname] (toolname defaults to "opt").'
|
echo 'USAGE: makellvm [toolname] (toolname defaults to "opt").'
|
||||||
exit 0
|
exit 0
|
||||||
endif
|
endif
|
||||||
|
set EXEC = $argv[1]
|
||||||
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
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
gnumake && (cd $LLVMDIR/tools/$EXEC && gnumake)
|
gnumake && (cd $LLVMDIR/tools/$EXEC && gnumake)
|
||||||
|
|
|
@ -6,20 +6,11 @@ set LLVMDIR = $THISEXEC:h
|
||||||
set EXEC = opt
|
set EXEC = opt
|
||||||
|
|
||||||
if ($#argv > 0) then
|
if ($#argv > 0) then
|
||||||
if (&& $argv[1] == "-h") then
|
if ($argv[1] == "-h") then
|
||||||
echo 'USAGE: makellvm [toolname] (toolname defaults to "opt").'
|
echo 'USAGE: makellvm [toolname] (toolname defaults to "opt").'
|
||||||
exit 0
|
exit 0
|
||||||
endif
|
endif
|
||||||
|
set EXEC = $argv[1]
|
||||||
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
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
gnumake && (cd $LLVMDIR/tools/$EXEC && gnumake)
|
gnumake && (cd $LLVMDIR/tools/$EXEC && gnumake)
|
||||||
|
|
Loading…
Reference in New Issue