mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-10-10 11:33:46 +02:00
guix: Add section headings to guix-build.sh
This commit is contained in:
@@ -2,6 +2,10 @@
|
|||||||
export LC_ALL=C
|
export LC_ALL=C
|
||||||
set -e -o pipefail
|
set -e -o pipefail
|
||||||
|
|
||||||
|
###################
|
||||||
|
## Sanity Checks ##
|
||||||
|
###################
|
||||||
|
|
||||||
# GUIX_BUILD_OPTIONS is an environment variable recognized by guix commands that
|
# GUIX_BUILD_OPTIONS is an environment variable recognized by guix commands that
|
||||||
# can perform builds. This seems like what we want instead of
|
# can perform builds. This seems like what we want instead of
|
||||||
# ADDITIONAL_GUIX_COMMON_FLAGS, but the value of GUIX_BUILD_OPTIONS is actually
|
# ADDITIONAL_GUIX_COMMON_FLAGS, but the value of GUIX_BUILD_OPTIONS is actually
|
||||||
@@ -26,6 +30,10 @@ EOF
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
#########
|
||||||
|
# Setup #
|
||||||
|
#########
|
||||||
|
|
||||||
# Determine the maximum number of jobs to run simultaneously (overridable by
|
# Determine the maximum number of jobs to run simultaneously (overridable by
|
||||||
# environment)
|
# environment)
|
||||||
MAX_JOBS="${MAX_JOBS:-$(nproc)}"
|
MAX_JOBS="${MAX_JOBS:-$(nproc)}"
|
||||||
@@ -49,6 +57,10 @@ time-machine() {
|
|||||||
-- "$@"
|
-- "$@"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#########
|
||||||
|
# Build #
|
||||||
|
#########
|
||||||
|
|
||||||
# Function to be called when building for host ${1} and the user interrupts the
|
# Function to be called when building for host ${1} and the user interrupts the
|
||||||
# build
|
# build
|
||||||
int_trap() {
|
int_trap() {
|
||||||
|
Reference in New Issue
Block a user