summaryrefslogtreecommitdiffstats
path: root/resources/scripts/helpers
diff options
context:
space:
mode:
authorFrancis Rowe <info@gluglug.org.uk>2015-06-07 20:47:50 (EDT)
committer Francis Rowe <info@gluglug.org.uk>2015-06-07 20:47:50 (EDT)
commit4886c9a8807211511209feeafc2fcec9788b0bfd (patch)
tree10c350874090827b0bcac4953d210f9cb09ce1ae /resources/scripts/helpers
parent17f72436f5a798aafee4afdf1f1a3fedf085cd01 (diff)
downloadlibreboot-4886c9a8807211511209feeafc2fcec9788b0bfd.zip
libreboot-4886c9a8807211511209feeafc2fcec9788b0bfd.tar.gz
libreboot-4886c9a8807211511209feeafc2fcec9788b0bfd.tar.bz2
build/release/src: create a directory for the release
Diffstat (limited to 'resources/scripts/helpers')
-rwxr-xr-xresources/scripts/helpers/build/release/src8
1 files changed, 5 insertions, 3 deletions
diff --git a/resources/scripts/helpers/build/release/src b/resources/scripts/helpers/build/release/src
index 372adfc..57742f5 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}/"