2021-08-07 17:06:39 -07:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -x
|
|
|
|
set -e
|
|
|
|
|
2022-01-04 12:57:43 -05:00
|
|
|
if [[ -n "$1" ]]; then
|
|
|
|
go build -ldflags="-s -w -X main.version_string=$1" -o tw ./twitter
|
|
|
|
else
|
|
|
|
go build -ldflags="-s -w" -o tw ./twitter
|
|
|
|
fi
|
2021-08-07 17:06:39 -07:00
|
|
|
chmod +x tw
|