mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
Use much better method to find the llvmbase directory.
Also, add -h option to print usage information. llvm-svn: 3729
This commit is contained in:
parent
7cde169e89
commit
9b33ad41dc
9
makellvm
9
makellvm
@ -1,9 +1,16 @@
|
|||||||
#!/bin/csh -f
|
#!/bin/csh -f
|
||||||
|
|
||||||
set LLVMDIR = $HOME/llvm
|
## LLVMDIR is simply the directory where this script resides!
|
||||||
|
set THISEXEC = $0 ## cannot use :h on $0 for some reason
|
||||||
|
set LLVMDIR = $THISEXEC:h
|
||||||
set EXEC = opt
|
set EXEC = opt
|
||||||
|
|
||||||
if ($#argv > 0) then
|
if ($#argv > 0) then
|
||||||
|
if (&& $argv[1] == "-h") then
|
||||||
|
echo 'USAGE: makellvm [toolname] (toolname defaults to "opt").'
|
||||||
|
exit 0
|
||||||
|
endif
|
||||||
|
|
||||||
set EXEC = NO_SUCH_TOOL
|
set EXEC = NO_SUCH_TOOL
|
||||||
set TOOLS = `grep DIRS ${LLVMDIR}/tools/Makefile | sed 's/DIRS[ ]*=[ ]*//'`
|
set TOOLS = `grep DIRS ${LLVMDIR}/tools/Makefile | sed 's/DIRS[ ]*=[ ]*//'`
|
||||||
foreach T ( $TOOLS )
|
foreach T ( $TOOLS )
|
||||||
|
@ -1,9 +1,16 @@
|
|||||||
#!/bin/csh -f
|
#!/bin/csh -f
|
||||||
|
|
||||||
set LLVMDIR = $HOME/llvm
|
## LLVMDIR is simply the directory where this script resides!
|
||||||
|
set THISEXEC = $0 ## cannot use :h on $0 for some reason
|
||||||
|
set LLVMDIR = $THISEXEC:h
|
||||||
set EXEC = opt
|
set EXEC = opt
|
||||||
|
|
||||||
if ($#argv > 0) then
|
if ($#argv > 0) then
|
||||||
|
if (&& $argv[1] == "-h") then
|
||||||
|
echo 'USAGE: makellvm [toolname] (toolname defaults to "opt").'
|
||||||
|
exit 0
|
||||||
|
endif
|
||||||
|
|
||||||
set EXEC = NO_SUCH_TOOL
|
set EXEC = NO_SUCH_TOOL
|
||||||
set TOOLS = `grep DIRS ${LLVMDIR}/tools/Makefile | sed 's/DIRS[ ]*=[ ]*//'`
|
set TOOLS = `grep DIRS ${LLVMDIR}/tools/Makefile | sed 's/DIRS[ ]*=[ ]*//'`
|
||||||
foreach T ( $TOOLS )
|
foreach T ( $TOOLS )
|
||||||
|
Loading…
Reference in New Issue
Block a user