From 0f63bb853825db67ed2fbdfff3fcc9b1d01fb11d Mon Sep 17 00:00:00 2001 From: Francis Rowe Date: Sun, 07 Jun 2015 20:19:48 -0400 Subject: build/release/crossgcc: Create directory for release version --- (limited to 'resources/scripts/helpers') diff --git a/resources/scripts/helpers/build/release/crossgcc b/resources/scripts/helpers/build/release/crossgcc index fd07418..2bac926 100755 --- a/resources/scripts/helpers/build/release/crossgcc +++ b/resources/scripts/helpers/build/release/crossgcc @@ -23,18 +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="release/crossgcc_${version}" +versiondir="release/${version}" +distdir="${versiondir}/crossgcc_${version}" printf 'Deleting old coreboot crossgcc archives\n' rm -Rf "${distdir}/" +[ -d "${distdir}/" ] || mkdir -p "${distdir}/" + printf 'Copying coreboot crossgcc archives to %s/\n' "${distdir}" -cp -R coreboot/util/crossgcc/tarballs/ "${distdir}/" +cp -R coreboot/util/crossgcc/tarballs/* "${distdir}/" printf '%s\n' "${version}" >"${distdir}/version" -- cgit v0.9.1