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) | ||||
3 | GIT_VERSION="$(./git-version-gen .tarball-version)" | ||||
4 | |||||
5 | echo "Copying binaries with "-latest" and "-$GIT_VERSION" appended..." | ||||
6 | |||||
7 | cd firmware/bin | ||||
8 | for 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 | ||||
14 | done |