2026-04-13 03:45:21 -07:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
|
|
set -euo pipefail
|
|
|
|
|
|
|
|
|
|
# Luxgo root folder
|
2026-05-15 12:15:55 -07:00
|
|
|
NODE_PATH=$( cd "$( dirname "${BASH_SOURCE[0]}" )"; cd .. && pwd )
|
2026-04-13 03:45:21 -07:00
|
|
|
# Load the constants
|
2026-05-15 12:15:55 -07:00
|
|
|
source "$NODE_PATH"/scripts/constants.sh
|
|
|
|
|
source "$NODE_PATH"/scripts/git_commit.sh
|
2026-04-13 03:45:21 -07:00
|
|
|
|
|
|
|
|
echo "Building tmpnetctl..."
|
|
|
|
|
go build -ldflags\
|
|
|
|
|
"-X github.com/luxfi/node/version.GitCommit=$git_commit $static_ld_flags"\
|
2026-05-15 12:15:55 -07:00
|
|
|
-o "$NODE_PATH/build/tmpnetctl"\
|
|
|
|
|
"$NODE_PATH/tests/fixture/tmpnet/tmpnetctl/"*.go
|