forked from extern/smegmesh
19 lines
335 B
Bash
Executable File
19 lines
335 B
Bash
Executable File
#!/usr/bin/bash
|
|
directory=$( cd "$(dirname "${BASH_SOURCE[0]}")" ; pwd -P )
|
|
wgmesh_bin="$directory/cmd/wg-mesh/wg-mesh"
|
|
wgmeshd_bin="$directory/cmd/wgmeshd/wgmeshd"
|
|
|
|
echo "BUILDING to $install_directory"
|
|
|
|
cd "$(dirname $wgmesh_bin)"
|
|
go mod tidy
|
|
go build
|
|
|
|
cd "$(dirname $wgmeshd_bin)"
|
|
go mod tidy
|
|
go build
|
|
|
|
cd $directory
|
|
|
|
echo "BUILT"
|