1
0
forked from extern/smegmesh

Added build.sh file

This commit is contained in:
Tim Beatham 2023-10-28 22:35:56 +01:00
parent 472718c9a3
commit f70bd2f42d

21
build.sh Executable file
View File

@ -0,0 +1,21 @@
#!/usr/bin/bash
directory=$( cd "$(dirname "${BASH_SOURCE[0]}")" ; pwd -P )
install_directory="/usr/bin"
wgmesh_bin="$directory/cmd/wg-mesh/wg-mesh"
wgmeshd_bin="$directory/cmd/wgmeshd/wgmeshd"
echo "BUILDING to $install_directory"
cd "$(dirname $wgmesh_bin)"
go build
cd "$(dirname $wgmeshd_bin)"
go build
cd $directory
mv $wgmesh_bin $install_directory
mv $wgmeshd_bin $install_directory
echo "BUILT to $install_directory"