diff options
Diffstat (limited to 'resources/scripts/helpers/build/release')
-rwxr-xr-x | resources/scripts/helpers/build/release/src | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/resources/scripts/helpers/build/release/src b/resources/scripts/helpers/build/release/src index 372adfc5..57742f5e 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}/" |