guix, refactor: Move duplicated outdir_for_host() to prelude.bash

This commit is contained in:
Hennadii Stepanov
2026-04-29 11:24:25 +01:00
parent 6b59fd6b8c
commit faa9d4345f
3 changed files with 8 additions and 17 deletions

View File

@@ -294,14 +294,6 @@ for host in $HOSTS; do
make -C "${PWD}/depends" -j"$JOBS" download-"$(host_to_commonname "$host")" ${V:+V=1} ${SOURCES_PATH:+SOURCES_PATH="$SOURCES_PATH"}
done
# Usage: outdir_for_host HOST SUFFIX
#
# HOST: The current platform triple we're building for
#
outdir_for_host() {
echo "${OUTDIR_BASE}/${1}${2:+-${2}}"
}
# Usage: profiledir_for_host HOST SUFFIX
#
# HOST: The current platform triple we're building for

View File

@@ -146,15 +146,6 @@ fi
# Codesigning tarballs SHOULD exist
################
# Usage: outdir_for_host HOST SUFFIX
#
# HOST: The current platform triple we're building for
#
outdir_for_host() {
echo "${OUTDIR_BASE}/${1}${2:+-${2}}"
}
codesigning_tarball_for_host() {
case "$1" in
*mingw*)

View File

@@ -80,6 +80,14 @@ time-machine() {
-- "$@"
}
# Usage: outdir_for_host HOST [SUFFIX]
#
# HOST: The current platform triple we're building for
# SUFFIX: Optional. If provided, appended to the directory name as "-SUFFIX"
#
outdir_for_host() {
echo "${OUTDIR_BASE}/${1}${2:+-${2}}"
}
################
# Set common variables