mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-27 13:30:05 +00:00
19 lines
391 B
Plaintext
19 lines
391 B
Plaintext
|
#!/bin/csh -f
|
||
|
|
||
|
set LLVMDIR = $HOME/llvm
|
||
|
set EXEC = opt
|
||
|
|
||
|
if ($#argv > 0) then
|
||
|
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
|
||
|
|
||
|
gnumake && (cd $LLVMDIR/tools/$EXEC && gnumake)
|