diff options
author | Francis Rowe <info@gluglug.org.uk> | 2015-06-08 01:19:48 +0100 |
---|---|---|
committer | Francis Rowe <info@gluglug.org.uk> | 2015-06-08 01:19:48 +0100 |
commit | 0f63bb853825db67ed2fbdfff3fcc9b1d01fb11d (patch) | |
tree | e2db8f9a13f38010de564281f9512401987daf74 /resources | |
parent | 9a0842427ea9775525371e82c0b661f3c61a2639 (diff) | |
download | librebootfr-0f63bb853825db67ed2fbdfff3fcc9b1d01fb11d.tar.gz librebootfr-0f63bb853825db67ed2fbdfff3fcc9b1d01fb11d.zip |
build/release/crossgcc: Create directory for release version
Diffstat (limited to 'resources')
-rwxr-xr-x | resources/scripts/helpers/build/release/crossgcc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/resources/scripts/helpers/build/release/crossgcc b/resources/scripts/helpers/build/release/crossgcc index fd07418b..2bac9262 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" |