aboutsummaryrefslogtreecommitdiff
path: root/resources/scripts/helpers
diff options
context:
space:
mode:
Diffstat (limited to 'resources/scripts/helpers')
-rwxr-xr-xresources/scripts/helpers/build/release/roms8
1 files changed, 5 insertions, 3 deletions
diff --git a/resources/scripts/helpers/build/release/roms b/resources/scripts/helpers/build/release/roms
index eb58a51e..b0d5f0c6 100755
--- a/resources/scripts/helpers/build/release/roms
+++ b/resources/scripts/helpers/build/release/roms
@@ -29,9 +29,11 @@ if [ ! -d bin/ ]; then
fi
version="$(git describe --tags HEAD)"
+versiondir="release/${version}"
+romdir="${versiondir}/rom"
distname="libreboot_${version}"
-[ -d release/rom/ ] || mkdir -p release/rom/
+[ -d "${romdir}/" ] || mkdir -p "${romdir}/"
printf 'Building ROM image release archives for...\n'
@@ -43,10 +45,10 @@ for board in *; do
printf '%s\n' "${version}" >"${board}/version"
# Delete the old archive
- rm -f "../release/rom/${distname}_${board}.tar.xz"
+ rm -f "../${romdir}/${distname}_${board}.tar.xz"
# Create the compressed archive.
- tar -c "${board}" | xz -9e >"../release/rom/${distname}_${board}.tar.xz"
+ tar -c "${board}" | xz -9e >"../${romdir}/${distname}_${board}.tar.xz"
# No longer needed.
rm -f "${board}/version"