From f6d1283c258b6e0b6fa6acb748f4ed1df9c344c8 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Sat, 20 Sep 2025 15:04:17 +0300 Subject: [PATCH] Set hjson-cli's version MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Thanks to Klaus Alexander Seistrup for warn about lack of it. --- build | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/build b/build index bab31e2..90ccab7 100755 --- a/build +++ b/build @@ -5,13 +5,19 @@ mkdir -p ../bin GO=${GO:-go} . ../config [ -d vendor ] && vendor="-mod=vendor" || : + mod=`$GO list $vendor -m` GO_LDFLAGS="$GO_LDFLAGS -X $mod.DefaultCfgPath=$CFGPATH" GO_LDFLAGS="$GO_LDFLAGS -X $mod.DefaultSendmailPath=$SENDMAIL" GO_LDFLAGS="$GO_LDFLAGS -X $mod.DefaultSpoolPath=$SPOOLPATH" GO_LDFLAGS="$GO_LDFLAGS -X $mod.DefaultLogPath=$LOGPATH" $GO build $vendor -o ../bin/nncp $GO_CFLAGS -ldflags "$GO_LDFLAGS" ./cmd/nncp -$GO build $vendor -o ../bin/hjson-cli $GO_CFLAGS github.com/hjson/hjson-go/v4/hjson-cli + +hjsonVersion=v$(sed -n "s/^.*hjson-go.* v\(.*\)$/\1/p"