logo

live-bootstrap

Mirror of <https://github.com/fosslinux/live-bootstrap>

update_env.sh (752B)


  1. #!/bin/sh
  2. # SPDX-FileCopyrightText: 2023 fosslinux <fosslinux@aussies.space>
  3. #
  4. # SPDX-License-Identifier: GPL-3.0-or-later
  5. unset GUILE_LOAD_PATH
  6. cat >> /steps/env <<- 'EOF'
  7. export PATH=${PREFIX}/bin
  8. PREFIX=${PREFIX}
  9. LIBDIR=${LIBDIR}
  10. DESTDIR=${DESTDIR}
  11. DISTFILES=${DISTFILES}
  12. SRCDIR=${SRCDIR}
  13. MAKEJOBS=-j${JOBS}
  14. export HOME=/tmp
  15. export SOURCE_DATE_EPOCH=0
  16. export KBUILD_BUILD_TIMESTAMP='@0'
  17. export SHELL=/usr/bin/bash
  18. DESTDIR=/tmp/destdir
  19. EOF
  20. # The following values are set up in the kaem environment.
  21. # As these are then passed through to the bash shell, they are considered
  22. # automatically exported variables. We don't want them exported.
  23. unset PREFIX
  24. unset BINDIR
  25. unset LIBDIR
  26. unset INCDIR
  27. unset SRCDIR
  28. unset TMPDIR
  29. unset DISTFILES
  30. . /steps/env