Oliver Smith | 1031d9b | 2021-03-05 15:38:48 +0100 | [diff] [blame] | 1 | #!/bin/sh -e |
| 2 | # Create copies of binaries with -latest, -$GIT_VERSION (OS#4413, OS#3452) |
Oliver Smith | 62ad58a | 2021-03-08 08:33:47 +0100 | [diff] [blame] | 3 | cd "$(dirname "$0")/.." |
| 4 | |
Oliver Smith | 1031d9b | 2021-03-05 15:38:48 +0100 | [diff] [blame] | 5 | GIT_VERSION="$(./git-version-gen .tarball-version)" |
| 6 | |
| 7 | echo "Copying binaries with "-latest" and "-$GIT_VERSION" appended..." |
| 8 | |
| 9 | cd firmware/bin |
| 10 | for 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 |
| 16 | done |