mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-17 13:07:54 +02:00
Merge pull request #1127 from psgreco/master-fix-guix-gitian
Fix tarball names in guix and gitian builds
This commit is contained in:
commit
cd9d64ebff
3 changed files with 3 additions and 1 deletions
|
|
@ -5,6 +5,7 @@
|
||||||
# A helper script to be sourced into the gitian descriptors
|
# A helper script to be sourced into the gitian descriptors
|
||||||
|
|
||||||
if RECENT_TAG="$(git describe --exact-match HEAD 2> /dev/null)"; then
|
if RECENT_TAG="$(git describe --exact-match HEAD 2> /dev/null)"; then
|
||||||
|
RECENT_TAG="${RECENT_TAG#elements-}"
|
||||||
VERSION="${RECENT_TAG#v}"
|
VERSION="${RECENT_TAG#v}"
|
||||||
else
|
else
|
||||||
VERSION="$(git rev-parse --short=12 HEAD)"
|
VERSION="$(git rev-parse --short=12 HEAD)"
|
||||||
|
|
|
||||||
|
|
@ -50,7 +50,7 @@ fi
|
||||||
################
|
################
|
||||||
|
|
||||||
VERSION="${VERSION:-$(git_head_version)}"
|
VERSION="${VERSION:-$(git_head_version)}"
|
||||||
DISTNAME="${DISTNAME:-bitcoin-${VERSION}}"
|
DISTNAME="${DISTNAME:-elements-${VERSION}}"
|
||||||
|
|
||||||
version_base_prefix="${PWD}/guix-build-"
|
version_base_prefix="${PWD}/guix-build-"
|
||||||
VERSION_BASE="${version_base_prefix}${VERSION}" # TOP
|
VERSION_BASE="${version_base_prefix}${VERSION}" # TOP
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,7 @@ git_root() {
|
||||||
git_head_version() {
|
git_head_version() {
|
||||||
local recent_tag
|
local recent_tag
|
||||||
if recent_tag="$(git describe --exact-match HEAD 2> /dev/null)"; then
|
if recent_tag="$(git describe --exact-match HEAD 2> /dev/null)"; then
|
||||||
|
recent_tag="${recent_tag#elements-}"
|
||||||
echo "${recent_tag#v}"
|
echo "${recent_tag#v}"
|
||||||
else
|
else
|
||||||
git rev-parse --short=12 HEAD
|
git rev-parse --short=12 HEAD
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue