libreboot

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

commit cd625291319b366f092decdfab61c0da80a5055e
parent 02c161bf0bc9945cd6e99ee6b8d5b91540304637
Author: Francis Rowe <info@gluglug.org.uk>
Date:   Sun,  7 Jun 2015 19:25:09 +0100

build/release/roms: support version in filenames

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

diff --git a/resources/scripts/helpers/build/release/roms b/resources/scripts/helpers/build/release/roms @@ -28,13 +28,18 @@ if [ ! -d bin/ ]; then exit 1 fi +version="$(git describe --tags HEAD)" +if [ "x${VERSION_IN_FILENAMES+set}" = 'xset' ]; then + distname="libreboot_${version}" +else + distname='libreboot' +fi + printf 'Deleting old documentation release archives\n' rm -Rf release/rom/ printf 'Building ROM image release archives for...\n' -version="$(git describe --tags HEAD)" - [ -d release/rom/ ] || mkdir -p release/rom/ cd bin/ @@ -45,7 +50,7 @@ for board in *; do printf '%s\n' "${version}" >"${board}/version" # Create the compressed archive. - tar -c "${board}" | xz -9e >"../release/rom/libreboot_${board}.tar.xz" + tar -c "${board}" | xz -9e >"../release/rom/${distname}_${board}.tar.xz" # No longer needed. rm -f "${board}/version"