diff options
author | Leah Rowe <leah@libreboot.org> | 2023-10-07 02:06:33 +0100 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2023-10-07 02:10:14 +0100 |
commit | 24584296a8f93f3bd9d81bd050e3b4ec33fcfaf2 (patch) | |
tree | 5a23a461a5e753db27479c08496886e1a7f0582d /include | |
parent | 62cc895c3c293011c256bb8c45cc4c07797cbf36 (diff) |
put include/export.sh in build script
remove include/export.sh
it's not a lot of code, and build is the only
file that uses it
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include')
-rwxr-xr-x | include/export.sh | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/include/export.sh b/include/export.sh deleted file mode 100755 index ada84e92..00000000 --- a/include/export.sh +++ /dev/null @@ -1,22 +0,0 @@ -# SPDX-License-Identifier: MIT -# SPDX-FileCopyrightText: 2023 Leah Rowe <leah@libreboot.org> - -tmpdir="" -tmpdir_was_set="y" -set | grep TMPDIR 1>/dev/null 2>/dev/null || tmpdir_was_set="n" -if [ "${tmpdir_was_set}" = "y" ]; then - tmpdir="${TMPDIR##*/}" - tmpdir="${TMPDIR%_*}" - if [ "${tmpdir}" = "lbmk" ]; then - tmpdir="" - tmpdir_was_set="n" - fi -fi -if [ "${tmpdir_was_set}" = "n" ]; then - export TMPDIR="/tmp" - tmpdir="$(mktemp -d -t lbmk_XXXXXXXX)" - export TMPDIR="${tmpdir}" -else - export TMPDIR="${TMPDIR}" -fi -tmpdir="${TMPDIR}" |