Skip to content

Commit 57f9533

Browse files
committed
guix: Add section headings to guix-build.sh
1 parent 38b7b2e commit 57f9533

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

contrib/guix/guix-build.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
export LC_ALL=C
33
set -e -o pipefail
44

5+
###################
6+
## Sanity Checks ##
7+
###################
8+
59
# GUIX_BUILD_OPTIONS is an environment variable recognized by guix commands that
610
# can perform builds. This seems like what we want instead of
711
# ADDITIONAL_GUIX_COMMON_FLAGS, but the value of GUIX_BUILD_OPTIONS is actually
@@ -26,6 +30,10 @@ EOF
2630
exit 1
2731
fi
2832

33+
#########
34+
# Setup #
35+
#########
36+
2937
# Determine the maximum number of jobs to run simultaneously (overridable by
3038
# environment)
3139
MAX_JOBS="${MAX_JOBS:-$(nproc)}"
@@ -49,6 +57,10 @@ time-machine() {
4957
-- "$@"
5058
}
5159

60+
#########
61+
# Build #
62+
#########
63+
5264
# Function to be called when building for host ${1} and the user interrupts the
5365
# build
5466
int_trap() {

0 commit comments

Comments
 (0)