diff options
author | Carl Dong <contact@carldong.me> | 2020-12-21 15:27:52 -0500 |
---|---|---|
committer | Carl Dong <contact@carldong.me> | 2021-01-08 11:40:01 -0500 |
commit | 2f9d1fdde66f4713351905ec73487e5288d20f8f (patch) | |
tree | 04b8d124105703154455465c0190254ac2b50425 /contrib/guix/libexec | |
parent | 0b7cd07bb56baa112ffa596fb23a905871031a36 (diff) | |
download | bitcoin-2f9d1fdde66f4713351905ec73487e5288d20f8f.tar.xz |
guix: Move DISTSRC determination to guix-build.sh
Diffstat (limited to 'contrib/guix/libexec')
-rw-r--r-- | contrib/guix/libexec/build.sh | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/contrib/guix/libexec/build.sh b/contrib/guix/libexec/build.sh index 50440c939d..d16ea2c20c 100644 --- a/contrib/guix/libexec/build.sh +++ b/contrib/guix/libexec/build.sh @@ -23,15 +23,6 @@ echo "At most ${MAX_JOBS:?not set} jobs will run at once..." # $HOSTs after successfully building. BASEPREFIX="${PWD}/depends" -# Setup the directory where our Bitcoin Core build for HOST will occur -DISTSRC="${DISTSRC:-${PWD}/distsrc-${HOST}}" -if [ -e "$DISTSRC" ]; then - echo "DISTSRC directory '${DISTSRC}' exists, probably because of previous builds... Aborting..." - exit 1 -else - mkdir -p "$DISTSRC" -fi - # Given a package name and an output name, return the path of that output in our # current guix environment store_path() { @@ -185,6 +176,7 @@ esac # Make $HOST-specific native binaries from depends available in $PATH export PATH="${BASEPREFIX}/${HOST}/native/bin:${PATH}" +mkdir -p "$DISTSRC" ( cd "$DISTSRC" |