libreboot

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

commit 17f72436f5a798aafee4afdf1f1a3fedf085cd01
parent f5255dc457a6299e36f1498e6a5ac0692bd2a9ea
Author: Francis Rowe <info@gluglug.org.uk>
Date:   Mon,  8 Jun 2015 01:40:59 +0100

build/release/roms: create a directory for the release

Diffstat:
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 @@ -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"