diff options
author | Francis Rowe <info@gluglug.org.uk> | 2015-06-07 14:25:09 (EDT) |
---|---|---|
committer | Francis Rowe <info@gluglug.org.uk> | 2015-06-07 14:25:09 (EDT) |
commit | cd625291319b366f092decdfab61c0da80a5055e (patch) | |
tree | 02b563e4fc77a5b7232f390c5db4dd272187ac2d /resources/scripts | |
parent | 02c161bf0bc9945cd6e99ee6b8d5b91540304637 (diff) | |
download | libreboot-cd625291319b366f092decdfab61c0da80a5055e.zip libreboot-cd625291319b366f092decdfab61c0da80a5055e.tar.gz libreboot-cd625291319b366f092decdfab61c0da80a5055e.tar.bz2 |
build/release/roms: support version in filenames
Diffstat (limited to 'resources/scripts')
-rwxr-xr-x | resources/scripts/helpers/build/release/roms | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/resources/scripts/helpers/build/release/roms b/resources/scripts/helpers/build/release/roms index 97b39d7..3859b08 100755 --- 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" |