Skip to content

Commit 72eb234

Browse files
authored
Create make_git_archive
1 parent eca9c3d commit 72eb234

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Copyright (c) 2024 The Bitcoin Core developers
2+
# Copyright (c) 2024 The litedoge Core developers
3+
# Distributed under the MIT software license, see the accompanying
4+
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
5+
#
6+
# A helper script to be sourced into the gitian descriptors
7+
8+
mkdir -p ${OUTDIR}/src
9+
RECENT_TAG=$(git describe --abbrev=0 HEAD)
10+
if [ $RECENT_TAG = $(git describe HEAD) ]; then
11+
if [[ $RECENT_TAG == v* ]]; then
12+
VERSION=${RECENT_TAG:1}
13+
else
14+
VERSION=$RECENT_TAG
15+
fi
16+
else
17+
VERSION=$(git rev-parse --short HEAD)
18+
fi
19+
DISTNAME=litedoge-${VERSION}
20+
GIT_ARCHIVE="${OUTDIR}/src/${DISTNAME}.tar.gz"
21+
git archive --output=$GIT_ARCHIVE HEAD

0 commit comments

Comments
 (0)