mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-02 01:18:08 +01:00
Perform variable substitution at runtime, rather than at generation time. This way, if bootstrap.cfg changes after update_env, the new values there take effect immediately.
24 lines
459 B
Bash
Executable file
24 lines
459 B
Bash
Executable file
#!/bin/sh
|
|
|
|
# SPDX-FileCopyrightText: 2023 fosslinux <fosslinux@aussies.space>
|
|
#
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
unset GUILE_LOAD_PATH
|
|
|
|
cat >> /steps/env <<- 'EOF'
|
|
export PATH=${PREFIX}/bin
|
|
PREFIX=${PREFIX}
|
|
LIBDIR=${LIBDIR}
|
|
DESTDIR=${DESTDIR}
|
|
DISTFILES=${DISTFILES}
|
|
SRCDIR=${SRCDIR}
|
|
MAKEJOBS=-j${JOBS}
|
|
export HOME=/tmp
|
|
export SOURCE_DATE_EPOCH=0
|
|
export KBUILD_BUILD_TIMESTAMP='@0'
|
|
export SHELL=/usr/bin/bash
|
|
DESTDIR=/tmp/destdir
|
|
EOF
|
|
|
|
. /steps/env
|