[llvm-commits] CVS: llvm/makellvm
vadve at cs.uiuc.edu
vadve at cs.uiuc.edu
Sun Sep 15 11:59:01 PDT 2002
Changes in directory llvm:
makellvm updated: 1.1 -> 1.2
---
Log message:
Use much better method to find the llvmbase directory.
Also, add -h option to print usage information.
---
Diffs of the changes:
Index: llvm/makellvm
diff -u llvm/makellvm:1.1 llvm/makellvm:1.2
--- llvm/makellvm:1.1 Sun Sep 15 11:33:32 2002
+++ llvm/makellvm Sun Sep 15 11:58:30 2002
@@ -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 )
More information about the llvm-commits
mailing list