Skip to content

Commit

Permalink
Create assign_DISTNAME
Browse files Browse the repository at this point in the history
  • Loading branch information
vashshawn authored Aug 7, 2024
1 parent 9f93f2b commit eca9c3d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions contrib/gitian-descriptors/assign_DISTNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Copyright (c) 2024 The Bitcoin Core developers
# Copyright (c) 2024 The litedoge Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
#
# A helper script to be sourced into the gitian descriptors

if RECENT_TAG="$(git describe --exact-match HEAD 2> /dev/null)"; then
VERSION="${RECENT_TAG#v}"
else
VERSION="$(git rev-parse --short=12 HEAD)"
fi
DISTNAME="litedoge-${VERSION}"

0 comments on commit eca9c3d

Please sign in to comment.