aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2019-12-06 10:45:17 -0500
committerDeterminant <[email protected]>2019-12-06 10:45:17 -0500
commitb0956649924d83f6b0cbb95ed34158d4d045bdde (patch)
tree6b72e484af04fbc0fb7b268c5c31e6ddf61e5c76 /scripts
parentea7812e16af71661b83f99c84f8150139c8e5fc5 (diff)
update go submodule recursively
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/build.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/build.sh b/scripts/build.sh
index 2443a76..a6b991d 100755
--- a/scripts/build.sh
+++ b/scripts/build.sh
@@ -7,13 +7,15 @@ source "${SRC_DIR}/env.sh"
if [[ "$OSTYPE" == "linux-gnu" ]]; then
go get -u -d "github.com/$SALTICIDAE_ORG/salticidae-go"
+ cd "$SALTICIDAE_GO_PATH"
+ git submodule update --init --recursive
cd "$SALTICIDAE_PATH"
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="$SALTICIDAE_PATH/build" .
make -j4
make install
cd -
rm -f "$prefix/libsalticidae.a"
- ln -sv "$GOPATH/src/github.com/$SALTICIDAE_ORG/salticidae-go/salticidae/libsalticidae.a" "$prefix/libsalticidae.a"
+ ln -sv "$SALTICIDAE_PATH/libsalticidae.a" "$prefix/libsalticidae.a"
elif [[ "$OSTYPE" == "darwin"* ]]; then
brew install Determinant/salticidae/salticidae
else