summaryrefslogtreecommitdiffstats
path: root/resources/scripts/helpers
diff options
context:
space:
mode:
authorFrancis Rowe <info@gluglug.org.uk>2015-06-07 20:25:12 (EDT)
committer Francis Rowe <info@gluglug.org.uk>2015-06-07 20:25:12 (EDT)
commitf5255dc457a6299e36f1498e6a5ac0692bd2a9ea (patch)
tree41fc0d23c53ad5dc47c295d2768b366a71c045a4 /resources/scripts/helpers
parent0f63bb853825db67ed2fbdfff3fcc9b1d01fb11d (diff)
downloadlibreboot-f5255dc457a6299e36f1498e6a5ac0692bd2a9ea.zip
libreboot-f5255dc457a6299e36f1498e6a5ac0692bd2a9ea.tar.gz
libreboot-f5255dc457a6299e36f1498e6a5ac0692bd2a9ea.tar.bz2
build/release/docs: create a directory for the release
Diffstat (limited to 'resources/scripts/helpers')
-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 ceb5238..410def4 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"