smegmesh/build.sh

19 lines
335 B
Bash
Raw Normal View History

2023-10-28 23:35:56 +02:00
#!/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)"
2023-10-30 14:17:15 +01:00
go mod tidy
2023-10-28 23:35:56 +02:00
go build
cd "$(dirname $wgmeshd_bin)"
2023-10-30 14:17:15 +01:00
go mod tidy
2023-10-28 23:35:56 +02:00
go build
cd $directory
2023-10-30 14:17:15 +01:00
echo "BUILT"