aboutsummaryrefslogtreecommitdiff
path: root/resources/scripts/helpers/build/release
diff options
context:
space:
mode:
authorFrancis Rowe <info@gluglug.org.uk>2015-06-08 00:29:16 +0100
committerFrancis Rowe <info@gluglug.org.uk>2015-06-08 00:29:16 +0100
commit0c1c2b3f1a2fe4da25acd476406c77ad5463778c (patch)
tree7d5868bb93a6d592be640545cb54a7ccce3c2f8d /resources/scripts/helpers/build/release
parenta455ead469e67471015b1d7dd1e71befb95b9f33 (diff)
downloadlibrebootfr-0c1c2b3f1a2fe4da25acd476406c77ad5463778c.tar.gz
librebootfr-0c1c2b3f1a2fe4da25acd476406c77ad5463778c.zip
build/release/crossgcc: simplify directory reference
Diffstat (limited to 'resources/scripts/helpers/build/release')
-rwxr-xr-xresources/scripts/helpers/build/release/crossgcc16
1 files changed, 8 insertions, 8 deletions
diff --git a/resources/scripts/helpers/build/release/crossgcc b/resources/scripts/helpers/build/release/crossgcc
index d76947b8..fd07418b 100755
--- a/resources/scripts/helpers/build/release/crossgcc
+++ b/resources/scripts/helpers/build/release/crossgcc
@@ -23,19 +23,19 @@
[ "x${DEBUG+set}" = 'xset' ] && set -v
set -u -e
+[ -d release/ ] || mkdir release/
+
printf 'Building the coreboot crossgcc archives\n'
version="$(git describe --tags HEAD)"
-distdir="crossgcc_${version}"
+distdir="release/crossgcc_${version}"
printf 'Deleting old coreboot crossgcc archives\n'
-rm -Rf "release/${distdir}/"
-
-[ -d release/ ] || mkdir release/
+rm -Rf "${distdir}/"
-printf 'Copying coreboot crossgcc archives to %s/\n' "release/${distdir}"
-cp -R coreboot/util/crossgcc/tarballs/ "release/${distdir}/"
+printf 'Copying coreboot crossgcc archives to %s/\n' "${distdir}"
+cp -R coreboot/util/crossgcc/tarballs/ "${distdir}/"
-printf '%s\n' "${version}" >"release/${distdir}/version"
+printf '%s\n' "${version}" >"${distdir}/version"
-printf 'coreboot crossgcc archives are stored in release/%s\n' "${distdir}"
+printf 'coreboot crossgcc archives are stored in %s\n' "${distdir}"