aboutsummaryrefslogtreecommitdiff
path: root/resources/scripts/helpers/build
diff options
context:
space:
mode:
authorFrancis Rowe <info@gluglug.org.uk>2015-06-07 20:17:40 +0100
committerFrancis Rowe <info@gluglug.org.uk>2015-06-07 20:17:40 +0100
commit35f1035c399d4e8903a85a51566a423d64f89c5c (patch)
treebf67c330e4baa683a8590ba415e30599b5753d0d /resources/scripts/helpers/build
parent05c18356ba6f81d1ad50960822b124967e2859c2 (diff)
downloadlibrebootfr-35f1035c399d4e8903a85a51566a423d64f89c5c.tar.gz
librebootfr-35f1035c399d4e8903a85a51566a423d64f89c5c.zip
build/release/roms: only delete the current archive build built
Diffstat (limited to 'resources/scripts/helpers/build')
-rwxr-xr-xresources/scripts/helpers/build/release/roms8
1 files changed, 4 insertions, 4 deletions
diff --git a/resources/scripts/helpers/build/release/roms b/resources/scripts/helpers/build/release/roms
index c2283882..492e8211 100755
--- 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"