summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Kortkamp <tobik@FreeBSD.org>2020-04-07 15:16:48 +0000
committerTobias Kortkamp <tobik@FreeBSD.org>2020-04-07 15:16:48 +0000
commite9fffaf820146999d4958dc0f7a2ad52259c8e45 (patch)
treeb748671eb396dbfab3eb3c2cac403243c02dc29c
parentSort (diff)
devel/shfmt: Fix shfmt -version output
Notes
Notes: svn path=/head/; revision=531019
-rw-r--r--devel/shfmt/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/devel/shfmt/Makefile b/devel/shfmt/Makefile
index c28f5f657b05..22a41d3444d6 100644
--- a/devel/shfmt/Makefile
+++ b/devel/shfmt/Makefile
@@ -23,6 +23,7 @@ GH_TUPLE= go-errgo:errgo:v2.1.0:go_errgo_errgo/vendor/gopkg.in/errgo.v2 \
pkg:diff:531926345625:pkg_diff/vendor/github.com/pkg/diff \
rogpeppe:go-internal:v1.5.2:rogpeppe_go_internal/vendor/github.com/rogpeppe/go-internal
GO_TARGET= ./cmd/shfmt
+GO_BUILDFLAGS= -ldflags="-s -w -X main.version=${DISTVERSIONFULL}"
GO_TESTTARGET= ./cmd/shfmt
PLIST_FILES= bin/shfmt