diff options
author | Francis Rowe <info@gluglug.org.uk> | 2015-06-07 19:29:16 (EDT) |
---|---|---|
committer | Francis Rowe <info@gluglug.org.uk> | 2015-06-07 19:29:16 (EDT) |
commit | 0c1c2b3f1a2fe4da25acd476406c77ad5463778c (patch) | |
tree | 7d5868bb93a6d592be640545cb54a7ccce3c2f8d /resources/scripts/helpers/build/release/crossgcc | |
parent | a455ead469e67471015b1d7dd1e71befb95b9f33 (diff) | |
download | libreboot-0c1c2b3f1a2fe4da25acd476406c77ad5463778c.zip libreboot-0c1c2b3f1a2fe4da25acd476406c77ad5463778c.tar.gz libreboot-0c1c2b3f1a2fe4da25acd476406c77ad5463778c.tar.bz2 |
build/release/crossgcc: simplify directory reference
Diffstat (limited to 'resources/scripts/helpers/build/release/crossgcc')
-rwxr-xr-x | resources/scripts/helpers/build/release/crossgcc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/resources/scripts/helpers/build/release/crossgcc b/resources/scripts/helpers/build/release/crossgcc index d76947b..fd07418 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}" |