mirror of
https://github.com/tulir/mautrix-whatsapp
synced 2024-05-19 20:33:45 +02:00
8 lines
302 B
Bash
Executable file
8 lines
302 B
Bash
Executable file
#!/bin/sh
|
|
if [ "$DBG" = 1 ]; then
|
|
GO_GCFLAGS='all=-N -l'
|
|
else
|
|
GO_LDFLAGS="-s -w ${GO_LDFLAGS}"
|
|
fi
|
|
go build -gcflags="$GO_GCFLAGS" -ldflags="-X main.Tag=$(git describe --exact-match --tags 2>/dev/null) -X main.Commit=$(git rev-parse HEAD) -X 'main.BuildTime=`date '+%b %_d %Y, %H:%M:%S'`'" "$@"
|