libreboot

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 5640bf36bb8ce0dd4b7c8c8cca49885b130f1934
parent d0e61be244c417bdbd89a8c71d80c9194e14ed73
Author: Francis Rowe <info@gluglug.org.uk>
Date:   Sun, 28 Jun 2015 20:13:02 +0100

build/release/roms: Put ROM images in rom/payload/, not rom/

Diffstat:
resources/scripts/helpers/build/release/roms | 44+++++++++++++++++++++++++++++---------------
1 file changed, 29 insertions(+), 15 deletions(-)

diff --git a/resources/scripts/helpers/build/release/roms b/resources/scripts/helpers/build/release/roms @@ -39,32 +39,46 @@ versiondir="release/${version}" romdir="${versiondir}/rom" distname="libreboot_${version}" -[ -d "${romdir}/" ] || mkdir -p "${romdir}/" - printf 'Building ROM image release archives for...\n' cd "bin/" -for board in *; do - printf '...%s' "${board}" - # Put the version string in the archive. - printf '%s\n' "${version}" >"${board}/version" +for payload in *; do + + [ ! -d "../${romdir}/${payload}/" ] && mkdir -p "../${romdir}/${payload}/" + + cd "${payload}/" + + for board in *; do + + archivename="${distname}_${payload}_${board}" - # Delete the old archive - rm -f "../${romdir}/${distname}_${board}.tar.xz" + printf '...%s' "${payload}/${board}" - cp -R "${board}/" "${distname}_${board}/" + # Put the version string in the archive. + printf '%s\n' "${version}" >"${board}/version" - # Create the compressed archive. - tar -c "${distname}_${board}/" | xz -9e >"../${romdir}/${distname}_${board}.tar.xz" + # Delete the old archive + rm -f "../../${romdir}/${payload}/${distname}_${board}.tar.xz" - rm -Rf "${distname}_${board}/" + cp -R "${board}/" "${archivename}/" - # No longer needed. - rm -f "${board}/version" + # Create the compressed archive. + tar -c "${archivename}/" | xz -9e >"../../${romdir}/${payload}/${archivename}.tar.xz" - printf ' OK\n' + rm -Rf "${archivename}/" + + # No longer needed. + rm -f "${board}/version" + + printf ' OK\n' + + done + + cd "../" + done + cd "../" printf 'ROM image release archives are stored in %s/\n' "${romdir}"