Skip to content

Commit

Permalink
build: Abstract release tarball generation to a utility script make_r…
Browse files Browse the repository at this point in the history
…elease_tarball

Github-Pull: bitcoin#18818
Rebased-From: 0ea34e7 (partial: gitian only)
  • Loading branch information
luke-jr committed May 7, 2020
1 parent e4193cd commit c474e46
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion contrib/gitian-descriptors/gitian-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ script: |
# Create the source tarball
mkdir -p "$(dirname "$GIT_ARCHIVE")"
git archive --output="$GIT_ARCHIVE" HEAD
contrib/gitian-descriptors/make_release_tarball "${GIT_ARCHIVE}"
ORIGPATH="$PATH"
# Extract the git archive into a dir for each host and build
Expand Down
2 changes: 1 addition & 1 deletion contrib/gitian-descriptors/gitian-osx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ script: |
# Create the source tarball
mkdir -p "$(dirname "$GIT_ARCHIVE")"
git archive --output="$GIT_ARCHIVE" HEAD
contrib/gitian-descriptors/make_release_tarball "${GIT_ARCHIVE}"
ORIGPATH="$PATH"
# Extract the git archive into a dir for each host and build
Expand Down
2 changes: 1 addition & 1 deletion contrib/gitian-descriptors/gitian-win.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ script: |
# Create the source tarball
mkdir -p "$(dirname "$GIT_ARCHIVE")"
git archive --output="$GIT_ARCHIVE" HEAD
contrib/gitian-descriptors/make_release_tarball "${GIT_ARCHIVE}"
ORIGPATH="$PATH"
# Extract the git archive into a dir for each host and build
Expand Down
10 changes: 10 additions & 0 deletions contrib/gitian-descriptors/make_release_tarball
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/sh
# Copyright (c) 2020 The Bitcoin 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 generate source release tarball

GIT_ARCHIVE="$1"
. "`dirname "$0"`/assign_DISTNAME"
git archive --output="${GIT_ARCHIVE}" HEAD

0 comments on commit c474e46

Please sign in to comment.