From 0c1c2b3f1a2fe4da25acd476406c77ad5463778c Mon Sep 17 00:00:00 2001 From: Francis Rowe Date: Mon, 8 Jun 2015 00:29:16 +0100 Subject: build/release/crossgcc: simplify directory reference --- resources/scripts/helpers/build/release/crossgcc | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'resources/scripts') 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}" -- cgit v1.2.3-70-g09d2