forked from trailblazing/llvm-bit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathllvm-gitpull-fornax.sh
78 lines (45 loc) · 1.17 KB
/
llvm-gitpull-fornax.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#!/bin/sh
WORKING_PATH="$1"
if ! [ "$WORKING_PATH" = "" ]; then
cd $WORKING_PATH/llvm
echo "------- LLVM ----------"
git pull --rebase
echo "------- Clang ----------"
cd $WORKING_PATH/tools/clang
git pull --rebase
#cd ../..
echo "------- Polly ----------"
cd $WORKING_PATH/tools/polly
git pull --rebase
#cd ../..
echo "------- Compiler-rt ----------"
cd $WORKING_PATH/projects/compiler-rt
git pull --rebase
#cd ../..
echo "------- OpenMP ----------"
cd $WORKING_PATH/projects/openmp
git pull --rebase
#cd ../..
echo "------- libcxx ----------"
cd $WORKING_PATH/llvm/projects/libcxx
git pull --rebase
echo "------- libcxxabi ----------"
cd $WORKING_PATH/projects/libcxxabi
git pull --rebase
cd $WORKING_PATH/llvm/projects/test-suite
git pull --rebase
echo "------- clang tools extra ----------"
cd $WORKING_PATH/llvm/tools/clang/tools/clang-tools-extra
git pull --rebase
echo "prepare build directory ..."
cd "$WORKING_PATH"
if [ ! -d "build-llvm" ]; then
mkdir build-llvm #(in-tree build is not supported)
fi;
if [ ! -d "install-llvm" ]; then
mkdir install-llvm
fi;
cd build-llvm;
else
echo "Give \$WORKING_PATH first."
fi;