Debian Codegraph @

scripts/build.sh

raw symbols SCIP
1 #!/bin/bashscip-shell filesystem . . `/bin/bash`.
2
3 ##########################################################################################
4 # NOTE: You are expected to call this file from the Makefile at the root of this project #
5 ##########################################################################################
6
7 APPLICATION_NAME="whois"
8
9 mkdirscip-shell system . . mkdir. bin
10 rmscip-shell system . . rm. -rf bin/${APPLICATION_NAME}-*.zip
11
12 envscip-shell system . . env. GOOS=darwin GOARCH=amd64 go build -o ${APPLICATION_NAME} ./cmd/whois/main.go
13 chmodscip-shell system . . chmod. +x ${APPLICATION_NAME}
14 zip bin/${APPLICATION_NAME}-darwin-amd64.zip ${APPLICATION_NAME} -m
15
16 envscip-shell system . . env. GOOS=darwin GOARCH=arm64 go build -o ${APPLICATION_NAME} ./cmd/whois/main.go
17 chmodscip-shell system . . chmod. +x ${APPLICATION_NAME}
18 zip bin/${APPLICATION_NAME}-darwin-arm64.zip ${APPLICATION_NAME} -m
19
20 envscip-shell system . . env. GOOS=linux GOARCH=amd64 go build -o ${APPLICATION_NAME} ./cmd/whois/main.go
21 chmodscip-shell system . . chmod. +x ${APPLICATION_NAME}
22 zip bin/${APPLICATION_NAME}-linux-amd64.zip ${APPLICATION_NAME} -m
23
24 envscip-shell system . . env. GOOS=linux GOARCH=arm64 go build -o ${APPLICATION_NAME} ./cmd/whois/main.go
25 chmodscip-shell system . . chmod. +x ${APPLICATION_NAME}
26 zip bin/${APPLICATION_NAME}-linux-arm64.zip ${APPLICATION_NAME} -m
27
28 envscip-shell system . . env. GOOS=windows GOARCH=amd64 go build -o ${APPLICATION_NAME}.exe ./cmd/whois/main.go
29 chmodscip-shell system . . chmod. +x ${APPLICATION_NAME}.exe
30 zip bin/${APPLICATION_NAME}-windows-amd64.zip ${APPLICATION_NAME}.exe -m