blob: 8242fd448e0725b1dbdca37c6a7abde24d2fa8ed [file] [log] [blame]
Oliver Smith1031d9b2021-03-05 15:38:48 +01001#!/bin/sh -e
2# Create copies of binaries with -latest, -$GIT_VERSION (OS#4413, OS#3452)
3GIT_VERSION="$(./git-version-gen .tarball-version)"
4
5echo "Copying binaries with "-latest" and "-$GIT_VERSION" appended..."
6
7cd firmware/bin
8for ext in bin elf; do
9 for file in *."$ext"; do
10 without_ext="${file%.*}"
11 cp -v "$file" "$without_ext-latest.$ext"
12 cp -v "$file" "$without_ext-$GIT_VERSION.$ext"
13 done
14done