From 17f72436f5a798aafee4afdf1f1a3fedf085cd01 Mon Sep 17 00:00:00 2001 From: Francis Rowe Date: Mon, 8 Jun 2015 01:40:59 +0100 Subject: build/release/roms: create a directory for the release --- resources/scripts/helpers/build/release/roms | 8 +++++--- 1 file 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" -- cgit v1.2.3-70-g09d2