diff options
author | Carl Dong <contact@carldong.me> | 2020-04-22 13:00:42 -0400 |
---|---|---|
committer | Carl Dong <contact@carldong.me> | 2020-04-28 10:36:35 -0400 |
commit | 395c1137f630dc495ffb2752a23bc1dfd470ee53 (patch) | |
tree | cc8064a00fc02d47c5c5d5e53bd97195cd532f50 /contrib/gitian-descriptors/gitian-win.yml | |
parent | 6e3fc7492a7d5e58c0ada22617388b6487410f82 (diff) | |
download | bitcoin-395c1137f630dc495ffb2752a23bc1dfd470ee53.tar.xz |
gitian: Limit sourced script to just assignments
Previously, the sourced script would create the source tarball. Now, it
only assigns variables and the source-ing script has more flexibility in
determining what to do with these variables.
See later commit showing how this flexibility is useful in our Guix
builds.
Diffstat (limited to 'contrib/gitian-descriptors/gitian-win.yml')
-rw-r--r-- | contrib/gitian-descriptors/gitian-win.yml | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/contrib/gitian-descriptors/gitian-win.yml b/contrib/gitian-descriptors/gitian-win.yml index 54ad68a2a3..adad7c32d1 100644 --- a/contrib/gitian-descriptors/gitian-win.yml +++ b/contrib/gitian-descriptors/gitian-win.yml @@ -108,9 +108,15 @@ script: | create_per-host_compiler_wrapper "${REFERENCE_DATETIME}" export PATH=${WRAP_DIR}:${PATH} - # Create the git archive, and define DISTNAME and GIT_ARCHIVE variables. - # shellcheck source=contrib/gitian-descriptors/make_git_archive - source contrib/gitian-descriptors/make_git_archive + # Define DISTNAME variable. + # shellcheck source=contrib/gitian-descriptors/assign_DISTNAME + source contrib/gitian-descriptors/assign_DISTNAME + + GIT_ARCHIVE="${OUTDIR}/src/${DISTNAME}.tar.gz" + + # Create the source tarball + mkdir -p "$(dirname "$GIT_ARCHIVE")" + git archive --output="$GIT_ARCHIVE" HEAD ORIGPATH="$PATH" # Extract the git archive into a dir for each host and build |