2022-08-02 10:22:06 +03:00
|
|
|
#!/bin/bash
|
2024-07-09 13:06:23 +03:00
|
|
|
echo "Using Go - $(go version)"
|
2022-08-02 10:22:06 +03:00
|
|
|
if [ "$1" == "fuse2" ]
|
|
|
|
then
|
|
|
|
# Build blobfuse2 with fuse2
|
|
|
|
rm -rf blobfuse2
|
|
|
|
rm -rf azure-storage-fuse
|
|
|
|
go build -tags fuse2 -o blobfuse2
|
|
|
|
elif [ "$1" == "health" ]
|
|
|
|
then
|
|
|
|
# Build Health Monitor binary
|
2022-08-27 17:17:39 +03:00
|
|
|
rm -rf bfusemon
|
|
|
|
go build -o bfusemon ./tools/health-monitor/
|
2022-08-02 10:22:06 +03:00
|
|
|
else
|
|
|
|
# Build blobfuse2 with fuse3
|
|
|
|
rm -rf blobfuse2
|
|
|
|
rm -rf azure-storage-fuse
|
|
|
|
go build -o blobfuse2
|
|
|
|
fi
|