<commit_before>[source]
git = "https://gitlab.redox-os.org/redox-os/bootloader.git"

[build]
template = "custom"
script = """
rsync -av --delete "${COOKBOOK_SOURCE}/" ./

ARCH="$(echo "${TARGET}" | cut -d - -f1)"
if [ "${ARCH}" == "x86_64" ]
then
    export TARGET="x86-unknown-none"
    "${COOKBOOK_MAKE}" -j "${COOKBOOK_MAKE_JOBS}"
    cp "build/${TARGET}/bootloader.bin" "${COOKBOOK_STAGE}/bootloader"
fi

# TODO: fails due to environmental variables
# export TARGET="${ARCH}-unknown-uefi"
# cleanenv "${COOKBOOK_MAKE}" -j "${COOKBOOK_MAKE_JOBS}"
# cp "build/${TARGET}/bootloader.efi" "${COOKBOOK_STAGE}/bootloader.efi"
"""
<commit_msg>Build UEFI bootloader<commit_after>[source]
git = "https://gitlab.redox-os.org/redox-os/bootloader.git"

[build]
template = "custom"
script = """
rsync -av --delete "${COOKBOOK_SOURCE}/" ./

ARCH="$(echo "${TARGET}" | cut -d - -f1)"
if [ "${ARCH}" == "x86_64" ]
then
    export TARGET="x86-unknown-none"
    "${COOKBOOK_MAKE}" -j "${COOKBOOK_MAKE_JOBS}"
    cp "build/${TARGET}/bootloader.bin" "${COOKBOOK_STAGE}/bootloader"
fi

export TARGET="${ARCH}-unknown-uefi"
"${COOKBOOK_MAKE}" -j "${COOKBOOK_MAKE_JOBS}"
cp "build/${TARGET}/bootloader.efi" "${COOKBOOK_STAGE}/bootloader.efi"
"""

{'fraction_non_alphanumeric': 0.21778140293637846, 'fraction_numerical': 0.011419249592169658, 'mean_word_length': 4.956310679611651, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3078503', 'n_tokens_mistral': 502, 'n_tokens_neox': 485, 'n_words': 83}