mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-01 18:33:56 +00:00
Use much better method to find the llvmbase directory.
Also, add -h option to print usage information. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3729 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5e1a0d9669
commit
0731d5491b
9
makellvm
9
makellvm
@ -1,9 +1,16 @@
|
||||
#!/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
|
||||
|
||||
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 TOOLS = `grep DIRS ${LLVMDIR}/tools/Makefile | sed 's/DIRS[ ]*=[ ]*//'`
|
||||
foreach T ( $TOOLS )
|
||||
|
@ -1,9 +1,16 @@
|
||||
#!/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
|
||||
|
||||
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 TOOLS = `grep DIRS ${LLVMDIR}/tools/Makefile | sed 's/DIRS[ ]*=[ ]*//'`
|
||||
foreach T ( $TOOLS )
|
||||
|
Loading…
x
Reference in New Issue
Block a user