aboutsummaryrefslogtreecommitdiff
path: root/resources/scripts/helpers/build/release
diff options
context:
space:
mode:
authorFrancis Rowe <info@gluglug.org.uk>2015-06-08 01:40:59 +0100
committerFrancis Rowe <info@gluglug.org.uk>2015-06-08 01:40:59 +0100
commit17f72436f5a798aafee4afdf1f1a3fedf085cd01 (patch)
treea3214af37c7cadea1e0ef817aa9923cc2e8356a4 /resources/scripts/helpers/build/release
parentf5255dc457a6299e36f1498e6a5ac0692bd2a9ea (diff)
downloadlibrebootfr-17f72436f5a798aafee4afdf1f1a3fedf085cd01.tar.gz
librebootfr-17f72436f5a798aafee4afdf1f1a3fedf085cd01.zip
build/release/roms: create a directory for the release
Diffstat (limited to 'resources/scripts/helpers/build/release')
-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"