blob: 90b32787dfd1bed8a32eb8d6346b18be24db094f [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)
Oliver Smith62ad58a2021-03-08 08:33:47 +01003cd "$(dirname "$0")/.."
4
Oliver Smith1031d9b2021-03-05 15:38:48 +01005GIT_VERSION="$(./git-version-gen .tarball-version)"
6
7echo "Copying binaries with "-latest" and "-$GIT_VERSION" appended..."
8
9cd firmware/bin
10for ext in bin elf; do
11 for file in *."$ext"; do
12 without_ext="${file%.*}"
13 cp -v "$file" "$without_ext-latest.$ext"
14 cp -v "$file" "$without_ext-$GIT_VERSION.$ext"
15 done
16done