From: Sergey Matveev Date: Sat, 20 Sep 2025 12:04:17 +0000 (+0300) Subject: Set hjson-cli's version X-Git-Tag: v8.12.1^2~2 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=f6d1283c258b6e0b6fa6acb748f4ed1df9c344c8;p=nncp.git Set hjson-cli's version Thanks to Klaus Alexander Seistrup for warn about lack of it. --- 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"