From 4886c9a8807211511209feeafc2fcec9788b0bfd Mon Sep 17 00:00:00 2001 From: Francis Rowe Date: Sun, 07 Jun 2015 20:47:50 -0400 Subject: build/release/src: create a directory for the release --- (limited to 'resources') diff --git a/resources/scripts/helpers/build/release/src b/resources/scripts/helpers/build/release/src index 372adfc..57742f5 100755 --- a/resources/scripts/helpers/build/release/src +++ b/resources/scripts/helpers/build/release/src @@ -26,11 +26,13 @@ set -u -e printf 'Building the source release archive\n' version="$(git describe --tags HEAD)" -distdir="release/libreboot_${version}_src" +versiondir="release/${version}" +distname="libreboot_${version}_src" +distdir="${versiondir}/${distname}" printf 'Deleting old source release archives\n' rm -f "${distdir}.tar.xz" -rm -Rf "${distdir}" +rm -Rf "${distdir}/" mkdir -p "${distdir}/" @@ -97,7 +99,7 @@ rm -f "${distdir}/ich9fdgbe_8m.bin" rm -f "${distdir}/ich9fdgbe_4m.bin" printf 'Creating %s.tar.xz\n' "${distdir}" -(cd release/ && tar -c "${distdir}/" | xz -9e >"${distdir}.tar.xz") +(cd "${versiondir}/" && tar -c "${distname}/" | xz -9e >"${distname}.tar.xz") rm -Rf "${distdir}/" -- cgit v0.9.1