summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancis Rowe <info@gluglug.org.uk>2015-06-07 20:05:37 (EDT)
committer Francis Rowe <info@gluglug.org.uk>2015-06-07 20:05:37 (EDT)
commit1eb0d901227b99c8dad56762a20487da93e856cb (patch)
treeb1330dd6bc36abea6eb7fbc5867589a11cc164d5
parent0c1c2b3f1a2fe4da25acd476406c77ad5463778c (diff)
downloadlibreboot-1eb0d901227b99c8dad56762a20487da93e856cb.zip
libreboot-1eb0d901227b99c8dad56762a20487da93e856cb.tar.gz
libreboot-1eb0d901227b99c8dad56762a20487da93e856cb.tar.bz2
build/release/docs: simplify directory reference
-rwxr-xr-xresources/scripts/helpers/build/release/docs12
1 files changed, 6 insertions, 6 deletions
diff --git a/resources/scripts/helpers/build/release/docs b/resources/scripts/helpers/build/release/docs
index a1f7b96..ceb5238 100755
--- a/resources/scripts/helpers/build/release/docs
+++ b/resources/scripts/helpers/build/release/docs
@@ -23,19 +23,19 @@
[ "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="libreboot_${version}_docs"
-
-[ -d release/ ] || mkdir release/
+distdir="release/libreboot_${version}_docs"
printf 'Deleting old documentation release archives\n'
-rm -f "release/${distdir}.tar.xz"
+rm -f "${distdir}.tar.xz"
printf '%s\n' "${version}" >"docs/version"
-printf 'Creating compressed documentation archive at %s/\n' "release/${distdir}.tar.xz"
-tar -c "docs/" | xz -9e >"release/${distdir}.tar.xz"
+printf 'Creating compressed documentation archive at %s/\n' "${distdir}.tar.xz"
+tar -c "docs/" | xz -9e >"${distdir}.tar.xz"
rm -f "docs/version"
printf 'Documentation release archives are stored in release/\n'