aboutsummaryrefslogtreecommitdiff
path: root/resources/scripts/helpers/build/release
diff options
context:
space:
mode:
Diffstat (limited to 'resources/scripts/helpers/build/release')
-rwxr-xr-xresources/scripts/helpers/build/release/docs7
1 files changed, 4 insertions, 3 deletions
diff --git a/resources/scripts/helpers/build/release/docs b/resources/scripts/helpers/build/release/docs
index ceb5238e..410def4b 100755
--- a/resources/scripts/helpers/build/release/docs
+++ b/resources/scripts/helpers/build/release/docs
@@ -23,12 +23,13 @@
[ "x${DEBUG+set}" = 'xset' ] && set -v
set -u -e
-[ -d release/ ] || mkdir release/
-
printf 'Building the documentation release archive\n'
version="$(git describe --tags HEAD)"
-distdir="release/libreboot_${version}_docs"
+versiondir="release/${version}"
+distdir="${versiondir}/libreboot_${version}_docs"
+
+[ -d "${versiondir}/" ] || mkdir -p "${versiondir}/"
printf 'Deleting old documentation release archives\n'
rm -f "${distdir}.tar.xz"