blob: b61a99ad3629ba5073d3c2410d0d0acaeef6109e [file] [log] [blame]
Vikram S. Adve631484c2002-09-15 16:33:32 +00001#!/bin/csh -f
2
3set LLVMDIR = $HOME/llvm
4set EXEC = opt
5
6if ($#argv > 0) then
7 set EXEC = NO_SUCH_TOOL
8 set TOOLS = `grep DIRS ${LLVMDIR}/tools/Makefile | sed 's/DIRS[ ]*=[ ]*//'`
9 foreach T ( $TOOLS )
10 if ($argv[1] == "$T") then
11 set EXEC = $T
12 shift argv
13 break
14 endif
15 end
16endif
17
18gnumake && (cd $LLVMDIR/tools/$EXEC && gnumake)