aboutsummaryrefslogtreecommitdiff
path: root/resources
diff options
context:
space:
mode:
authorFrancis Rowe <info@gluglug.org.uk>2015-06-08 01:47:50 +0100
committerFrancis Rowe <info@gluglug.org.uk>2015-06-08 01:47:50 +0100
commit4886c9a8807211511209feeafc2fcec9788b0bfd (patch)
tree10c350874090827b0bcac4953d210f9cb09ce1ae /resources
parent17f72436f5a798aafee4afdf1f1a3fedf085cd01 (diff)
downloadlibrebootfr-4886c9a8807211511209feeafc2fcec9788b0bfd.tar.gz
librebootfr-4886c9a8807211511209feeafc2fcec9788b0bfd.zip
build/release/src: create a directory for the release
Diffstat (limited to 'resources')
-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 372adfc5..57742f5e 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}/"