mirror of
https://github.com/lightningnetwork/lnd.git
synced 2024-11-19 18:10:34 +01:00
Merge pull request #2400 from Roasbeef/fix-release-script
build: fix release script to include commit hash
This commit is contained in:
commit
6589f686ad
@ -27,8 +27,9 @@ SYS=${LNDBUILDSYS:-"windows-386 windows-amd64 openbsd-386 openbsd-amd64 linux-38
|
||||
|
||||
# Use the first element of $GOPATH in the case where GOPATH is a list
|
||||
# (something that is totally allowed).
|
||||
GPATH=$(echo $GOPATH | cut -f1 -d:)
|
||||
COMMITFLAGS="-X main.Commit=$(git rev-parse HEAD)"
|
||||
PKG="github.com/lightningnetwork/lnd"
|
||||
COMMIT=$(git describe --abbrev=40 --dirty)
|
||||
COMMITFLAGS="-X $PKG/build.Commit=$COMMIT"
|
||||
|
||||
for i in $SYS; do
|
||||
OS=$(echo $i | cut -f1 -d-)
|
||||
|
Loading…
Reference in New Issue
Block a user