Skip to content

Commit

Permalink
Use much better method to find the llvmbase directory.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Vikram S. Adve committed Sep 15, 2002
1 parent 5e1a0d9 commit 0731d54
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
9 changes: 8 additions & 1 deletion makellvm
Original file line number Diff line number Diff line change
@@ -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 )
Expand Down
9 changes: 8 additions & 1 deletion utils/makellvm
Original file line number Diff line number Diff line change
@@ -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 )
Expand Down

0 comments on commit 0731d54

Please sign in to comment.