-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbootstrap
More file actions
executable file
·53 lines (36 loc) · 1016 Bytes
/
bootstrap
File metadata and controls
executable file
·53 lines (36 loc) · 1016 Bytes
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
#!/bin/bash
set -e
echo ""
echo " ================================"
echo ""
echo " Starting over ..."
echo ""
UNITY_CPP="src/cli.fu.unity.cpp"
BOOTSTRAP="bin/fu.bootstrap"
if [ ! "$1" == "--use-cached" ] || [ ! -f "$BOOTSTRAP" ]; then
echo " git reset && git checkout *.cpp ..."
echo ""
git reset
git checkout *.fu.cpp *.fu.unity.cpp
echo ""
echo " Rebuilding $BOOTSTRAP ..."
echo ""
if [ ! -f "$UNITY_CPP" ]; then
echo " ERROR $UNITY_CPP not found."
echo " Maybe you're not calling this from the root of the repo?"
exit 1
fi
mkdir -p bin
g++ --std=c++17 -Og -o "$BOOTSTRAP" "$UNITY_CPP" -ldl -pthread -I include -g -Dfu_UNITY_FULIB
else
echo " --use-cached $BOOTSTRAP ..."
echo ""
fi
echo " --------------------------------"
"$BOOTSTRAP" self
echo " --------------------------------"
./bin/fu self
echo " --------------------------------"
./bin/fu self
echo " --------------------------------"
./bin/fu self