aboutsummaryrefslogtreecommitdiff
path: root/resources/scripts
diff options
context:
space:
mode:
authorFrancis Rowe <info@gluglug.org.uk>2015-06-08 01:05:37 +0100
committerFrancis Rowe <info@gluglug.org.uk>2015-06-08 01:05:37 +0100
commit1eb0d901227b99c8dad56762a20487da93e856cb (patch)
treeb1330dd6bc36abea6eb7fbc5867589a11cc164d5 /resources/scripts
parent0c1c2b3f1a2fe4da25acd476406c77ad5463778c (diff)
downloadlibrebootfr-1eb0d901227b99c8dad56762a20487da93e856cb.tar.gz
librebootfr-1eb0d901227b99c8dad56762a20487da93e856cb.zip
build/release/docs: simplify directory reference
Diffstat (limited to 'resources/scripts')
-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 a1f7b963..ceb5238e 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'