File tree Expand file tree Collapse file tree 5 files changed +39
-29
lines changed
contrib/gitian-descriptors Expand file tree Collapse file tree 5 files changed +39
-29
lines changed Original file line number Diff line number Diff line change
1
+ # Copyright (c) 2020 The Bitcoin Core developers
2
+ # Distributed under the MIT software license, see the accompanying
3
+ # file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
+ #
5
+ # A helper script to be sourced into the gitian descriptors
6
+
7
+ if RECENT_TAG="$(git describe --exact-match HEAD)"; then
8
+ VERSION="${RECENT_TAG#v}"
9
+ else
10
+ VERSION="$(git rev-parse --short HEAD)"
11
+ fi
12
+ DISTNAME="bitcoin-${VERSION}"
Original file line number Diff line number Diff line change @@ -140,9 +140,15 @@ script: |
140
140
create_per-host_faketime_wrappers "${REFERENCE_DATETIME}"
141
141
export PATH=${WRAP_DIR}:${PATH}
142
142
143
- # Create the git archive, and define DISTNAME and GIT_ARCHIVE variables.
144
- # shellcheck source=contrib/gitian-descriptors/make_git_archive
145
- source contrib/gitian-descriptors/make_git_archive
143
+ # Define DISTNAME variable.
144
+ # shellcheck source=contrib/gitian-descriptors/assign_DISTNAME
145
+ source contrib/gitian-descriptors/assign_DISTNAME
146
+
147
+ GIT_ARCHIVE="${OUTDIR}/src/${DISTNAME}.tar.gz"
148
+
149
+ # Create the source tarball
150
+ mkdir -p "$(dirname "$GIT_ARCHIVE")"
151
+ git archive --output="$GIT_ARCHIVE" HEAD
146
152
147
153
ORIGPATH="$PATH"
148
154
# Extract the git archive into a dir for each host and build
Original file line number Diff line number Diff line change @@ -103,9 +103,15 @@ script: |
103
103
create_per-host_faketime_wrappers "${REFERENCE_DATETIME}"
104
104
export PATH=${WRAP_DIR}:${PATH}
105
105
106
- # Create the git archive, and define DISTNAME and GIT_ARCHIVE variables.
107
- # shellcheck source=contrib/gitian-descriptors/make_git_archive
108
- source contrib/gitian-descriptors/make_git_archive
106
+ # Define DISTNAME variable.
107
+ # shellcheck source=contrib/gitian-descriptors/assign_DISTNAME
108
+ source contrib/gitian-descriptors/assign_DISTNAME
109
+
110
+ GIT_ARCHIVE="${OUTDIR}/src/${DISTNAME}.tar.gz"
111
+
112
+ # Create the source tarball
113
+ mkdir -p "$(dirname "$GIT_ARCHIVE")"
114
+ git archive --output="$GIT_ARCHIVE" HEAD
109
115
110
116
ORIGPATH="$PATH"
111
117
# Extract the git archive into a dir for each host and build
Original file line number Diff line number Diff line change @@ -108,9 +108,15 @@ script: |
108
108
create_per-host_compiler_wrapper "${REFERENCE_DATETIME}"
109
109
export PATH=${WRAP_DIR}:${PATH}
110
110
111
- # Create the git archive, and define DISTNAME and GIT_ARCHIVE variables.
112
- # shellcheck source=contrib/gitian-descriptors/make_git_archive
113
- source contrib/gitian-descriptors/make_git_archive
111
+ # Define DISTNAME variable.
112
+ # shellcheck source=contrib/gitian-descriptors/assign_DISTNAME
113
+ source contrib/gitian-descriptors/assign_DISTNAME
114
+
115
+ GIT_ARCHIVE="${OUTDIR}/src/${DISTNAME}.tar.gz"
116
+
117
+ # Create the source tarball
118
+ mkdir -p "$(dirname "$GIT_ARCHIVE")"
119
+ git archive --output="$GIT_ARCHIVE" HEAD
114
120
115
121
ORIGPATH="$PATH"
116
122
# Extract the git archive into a dir for each host and build
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments