libreboot

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

commit 35f1035c399d4e8903a85a51566a423d64f89c5c
parent 05c18356ba6f81d1ad50960822b124967e2859c2
Author: Francis Rowe <info@gluglug.org.uk>
Date:   Sun,  7 Jun 2015 20:17:40 +0100

build/release/roms: only delete the current archive build built

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

diff --git a/resources/scripts/helpers/build/release/roms b/resources/scripts/helpers/build/release/roms @@ -35,10 +35,7 @@ else distname='libreboot' fi -printf 'Deleting old documentation release archives\n' -rm -Rf release/rom/ - -mkdir -p release/rom/ +[ -d release/rom/ ] || mkdir -p release/rom/ printf 'Building ROM image release archives for...\n' @@ -49,6 +46,9 @@ for board in *; do # Put the version string in the archive. printf '%s\n' "${version}" >"${board}/version" + # Delete the old archive + rm -f "../release/rom/${distname}_${board}.tar.xz" + # Create the compressed archive. tar -c "${board}" | xz -9e >"../release/rom/${distname}_${board}.tar.xz"