summaryrefslogtreecommitdiffstats
path: root/resources/scripts
diff options
context:
space:
mode:
authorFrancis Rowe <info@gluglug.org.uk>2015-06-07 20:40:59 (EDT)
committer Francis Rowe <info@gluglug.org.uk>2015-06-07 20:40:59 (EDT)
commit17f72436f5a798aafee4afdf1f1a3fedf085cd01 (patch)
treea3214af37c7cadea1e0ef817aa9923cc2e8356a4 /resources/scripts
parentf5255dc457a6299e36f1498e6a5ac0692bd2a9ea (diff)
downloadlibreboot-17f72436f5a798aafee4afdf1f1a3fedf085cd01.zip
libreboot-17f72436f5a798aafee4afdf1f1a3fedf085cd01.tar.gz
libreboot-17f72436f5a798aafee4afdf1f1a3fedf085cd01.tar.bz2
build/release/roms: create a directory for the release
Diffstat (limited to 'resources/scripts')
-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 eb58a51..b0d5f0c 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"