summaryrefslogtreecommitdiff
path: root/src/lib/build/build.sh
diff options
context:
space:
mode:
authorLevente Polyak <anthraxx@archlinux.org>2023-09-10 00:00:27 +0200
committerLevente Polyak <anthraxx@archlinux.org>2024-01-10 00:14:01 +0100
commitb264c7f1c771790c53561f5d3f4de589e0000c05 (patch)
tree9209cbd4900e7143bee5724fd048213bf5a16996 /src/lib/build/build.sh
parent2b8033b91132d303603f370a54eef02949703750 (diff)
downloaddevtools-b264c7f1c771790c53561f5d3f4de589e0000c05.tar.xz
feat(util): parallelize srcinfo generation
Heavily improve the runtime of huge split packages, by creating an own parallelized high level implementation of the makepkg low level building blocks for srcinfo generation. This reduces the runtine to generate the srcinfo file for thunderbird from 24 seconds down to 1 second.
Diffstat (limited to 'src/lib/build/build.sh')
-rw-r--r--src/lib/build/build.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/build/build.sh b/src/lib/build/build.sh
index e0982e4..8b4240c 100644
--- a/src/lib/build/build.sh
+++ b/src/lib/build/build.sh
@@ -14,6 +14,8 @@ source "${_DEVTOOLS_LIBRARY_DIR}"/lib/db/update.sh
source "${_DEVTOOLS_LIBRARY_DIR}"/lib/release.sh
# shellcheck source=src/lib/util/git.sh
source "${_DEVTOOLS_LIBRARY_DIR}"/lib/util/git.sh
+# shellcheck source=src/lib/util/srcinfo.sh
+source "${_DEVTOOLS_LIBRARY_DIR}"/lib/util/srcinfo.sh
# shellcheck source=src/lib/util/pacman.sh
source "${_DEVTOOLS_LIBRARY_DIR}"/lib/util/pacman.sh
# shellcheck source=src/lib/valid-repos.sh
@@ -26,8 +28,7 @@ source "${_DEVTOOLS_LIBRARY_DIR}"/lib/valid-inspect.sh
source /usr/share/makepkg/util/config.sh
source /usr/share/makepkg/util/message.sh
-set -e
-set -o pipefail
+set -eo pipefail
pkgctl_build_usage() {