summaryrefslogtreecommitdiffstats
path: root/resources/scripts/helpers/build/release/crossgcc
diff options
context:
space:
mode:
Diffstat (limited to 'resources/scripts/helpers/build/release/crossgcc')
-rwxr-xr-xresources/scripts/helpers/build/release/crossgcc7
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}/"