smegmesh/build.sh
2023-10-30 13:17:47 +00:00

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"