Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit 86a6875

Browse files
committed
build: Compile the standalone analysis util with the other daemons
Also use subshells for increased safety in the scripting: https://github.com/koalaman/shellcheck/wiki/SC2103
1 parent 28872d8 commit 86a6875

File tree

1 file changed

+30
-18
lines changed

1 file changed

+30
-18
lines changed

build_dbhub.sh

Lines changed: 30 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
#!/bin/sh
22

3-
# TODO: Add the function names from the SQLite extensions to AuthorizerSelect()
4-
53
# Useful variables
64
DEST=${PWD}/local
75
export PKG_CONFIG_PATH=${DEST}/lib/pkgconfig
@@ -55,20 +53,34 @@ yarn run webpack -c webui/webpack.config.js
5553

5654
# Builds the Go binaries
5755
if [ -d "${GOBIN}" ]; then
58-
echo "Compiling DBHub.io API executable"
59-
cd api || exit 5
60-
go install .
61-
cd ..
62-
echo "Compiling DBHub.io DB4S end point executable"
63-
cd db4s || exit 6
64-
go install .
65-
cd ..
66-
echo "Compiling DBHub.io Live executable"
67-
cd live || exit 7
68-
go install .
69-
cd ..
70-
echo "Compiling DBHub.io Web User Interface executable"
71-
cd webui || exit 8
72-
go install .
73-
cd ..
56+
(
57+
echo "Compiling DBHub.io API daemon"
58+
cd api || exit 5
59+
go install .
60+
cd ..
61+
)
62+
(
63+
echo "Compiling DBHub.io DB4S end point daemon"
64+
cd db4s || exit 6
65+
go install .
66+
cd ..
67+
)
68+
(
69+
echo "Compiling DBHub.io Live daemon"
70+
cd live || exit 7
71+
go install .
72+
cd ..
73+
)
74+
(
75+
echo "Compiling DBHub.io Space Analysis executable"
76+
cd standalone/analysis || exit 8
77+
go install .
78+
cd ../..
79+
)
80+
(
81+
echo "Compiling DBHub.io Web User Interface daemon"
82+
cd webui || exit 9
83+
go install .
84+
cd ..
85+
)
7486
fi

0 commit comments

Comments
 (0)