diff options
author | Francis Rowe <info@gluglug.org.uk> | 2015-06-07 15:24:48 (EDT) |
---|---|---|
committer | Francis Rowe <info@gluglug.org.uk> | 2015-06-07 15:24:48 (EDT) |
commit | a0cdd42dd51becc69117abc99789abdccfd2cfb4 (patch) | |
tree | 9c6631ba2149efb86c875fe1559a1921e0853508 /resources | |
parent | f4516730b0fa85fd6f1a97d820cb7f5aaada82f6 (diff) | |
download | libreboot-a0cdd42dd51becc69117abc99789abdccfd2cfb4.zip libreboot-a0cdd42dd51becc69117abc99789abdccfd2cfb4.tar.gz libreboot-a0cdd42dd51becc69117abc99789abdccfd2cfb4.tar.bz2 |
build/release/crossgcc: support version in filename
Diffstat (limited to 'resources')
-rwxr-xr-x | resources/scripts/helpers/build/release/crossgcc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/resources/scripts/helpers/build/release/crossgcc b/resources/scripts/helpers/build/release/crossgcc index fe83f85..b50d46a 100755 --- a/resources/scripts/helpers/build/release/crossgcc +++ b/resources/scripts/helpers/build/release/crossgcc @@ -25,7 +25,12 @@ set -u -e printf 'Building the coreboot crossgcc archives\n' -distdir='crossgcc' +version="$(git describe --tags HEAD)" +if [ "x${VERSION_IN_FILENAMES+set}" = 'xset' ]; then + distdir="crossgcc_${version}" +else + distdir='crossgcc' +fi printf 'Deleting old coreboot crossgcc archives\n' rm -Rf "release/${distdir}/" |