forked from riscv/riscv-bitmanip
-
Notifications
You must be signed in to change notification settings - Fork 0
/
checkout.sh
57 lines (50 loc) · 1.41 KB
/
checkout.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
#!/bin/bash
set -ex
if [ ! -d riscv-gcc ]; then
rm -rf riscv-gcc-new
git clone [email protected]:riscv/riscv-gcc.git riscv-gcc-new
cd riscv-gcc-new
git checkout riscv-bitmanip
# rebase occasionally to upstream/trunk
git remote add upstream git://gcc.gnu.org/git/gcc.git
git fetch upstream
cd ..
mv riscv-gcc-new riscv-gcc
fi
if [ ! -d riscv-binutils ]; then
rm -rf riscv-binutils-new
git clone [email protected]:riscv/riscv-binutils-gdb.git riscv-binutils-new
cd riscv-binutils-new
git checkout riscv-bitmanip
# rebase occasionally to upstream/master
git remote add upstream git://sourceware.org/git/binutils-gdb.git
git fetch upstream
cd ..
mv riscv-binutils-new riscv-binutils
fi
if [ ! -d riscv-isa-sim ]; then
rm -rf riscv-isa-sim-new
git clone [email protected]:riscv/riscv-isa-sim.git riscv-isa-sim-new
cd riscv-isa-sim-new
git checkout riscv-bitmanip
cd ..
mv riscv-isa-sim-new riscv-isa-sim
fi
if [ ! -d riscv-opcodes ]; then
rm -rf riscv-opcodes-new
git clone [email protected]:riscv/riscv-opcodes.git riscv-opcodes-new
cd riscv-opcodes-new
git checkout riscv-bitmanip
cd ..
mv riscv-opcodes-new riscv-opcodes
fi
if [ ! -d riscv-newlib ]; then
rm -rf riscv-newlib-new
git clone [email protected]:riscv/riscv-newlib.git riscv-newlib-new
mv riscv-newlib-new riscv-newlib
fi
if [ ! -d riscv-pk ]; then
rm -rf riscv-pk-new
git clone [email protected]:riscv/riscv-pk.git riscv-pk-new
mv riscv-pk-new riscv-pk
fi