Shell-script to build current directory and then link one tool (default: opt)
authorVikram S. Adve <vadve@cs.uiuc.edu>
Sun, 15 Sep 2002 16:33:32 +0000 (16:33 +0000)
committerVikram S. Adve <vadve@cs.uiuc.edu>
Sun, 15 Sep 2002 16:33:32 +0000 (16:33 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3727 91177308-0d34-0410-b5e6-96231b3b80d8

makellvm [new file with mode: 0755]
utils/makellvm [new file with mode: 0755]

diff --git a/makellvm b/makellvm
new file mode 100755 (executable)
index 0000000..b61a99a
--- /dev/null
+++ b/makellvm
@@ -0,0 +1,18 @@
+#!/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)
diff --git a/utils/makellvm b/utils/makellvm
new file mode 100755 (executable)
index 0000000..b61a99a
--- /dev/null
@@ -0,0 +1,18 @@
+#!/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)