-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild_all.sh
executable file
·59 lines (54 loc) · 1.5 KB
/
build_all.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
#!/bin/bash
# Try running this file for a complete build
make -C liblast/ clean >/dev/null 2>&1
make -C libbbrc/ clean >/dev/null 2>&1
make -C fminer/ clean >/dev/null 2>&1
echo "Configuring LibLAST..."
cd ./liblast/ ; ./configure >> build.log 2>&1
if [ $? -ne 0 ]; then
echo "Configuration failed. Please examine 'liblast/build.log'."
exit 1
fi
cd -
echo "Building LibLAST..."
if ! make -C liblast/ >> liblast/build.log 2>&1; then
echo "Build failed. Please examine 'liblast/build.log'."
exit 1
fi
echo "Building LibLAST for Ruby..."
if ! make -C liblast/ ruby >> liblast/build.log 2>&1; then
echo "Build failed. Please examine 'liblast/build.log'."
exit 1
fi
echo "Configuring LibBBRC..."
cd ./libbbrc/ ; ./configure >> build.log 2>&1
if [ $? -ne 0 ]; then
echo "Configuration failed. Please examine 'libbbrc/build.log'."
exit 1
fi
cd -
echo "Building LibBBRC..."
make -C libbbrc/ >> libbbrc/build.log 2>&1
if [ $? -ne 0 ]; then
echo "Build failed. Please examine 'libbbrc/build.log'."
exit 1
fi
echo "Building LibBBRC for Ruby..."
make -C libbbrc/ ruby >> libbbrc/build.log 2>&1
if [ $? -ne 0 ]; then
echo "Build failed. Please examine 'libbbrc/build.log'."
exit 1
fi
echo "Configuring Fminer..."
cd ./fminer/ ; ./configure >> build.log 2>&1
if [ $? -ne 0 ]; then
echo "Configuration failed. Please examine 'fminer/build.log'."
exit 1
fi
cd -
echo "Building Fminer..."
make -C fminer/ >> fminer/build.log 2>&1
if [ $? -ne 0 ]; then
echo "Build failed. Please examine 'build.log'."
exit 1
fi