Commit 72eb234 1 parent eca9c3d commit 72eb234 Copy full SHA for 72eb234
File tree 1 file changed +21
-0
lines changed
contrib/gitian-descriptors
1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments