mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-19 14:58:35 +03:00
Don't create copies of firmware files with version strings appended in the normal build. Only do this before uploading the firmware files. I have verified that "make" before this change and "make; contrib/prepare_upload.sh" after produce the same files. Close: OS#4413 Change-Id: I118a4ff397a178281c26a6b98112fa66b6f049ab
15 lines
408 B
Bash
Executable File
15 lines
408 B
Bash
Executable File
#!/bin/sh -e
|
|
# Create copies of binaries with -latest, -$GIT_VERSION (OS#4413, OS#3452)
|
|
GIT_VERSION="$(./git-version-gen .tarball-version)"
|
|
|
|
echo "Copying binaries with "-latest" and "-$GIT_VERSION" appended..."
|
|
|
|
cd firmware/bin
|
|
for ext in bin elf; do
|
|
for file in *."$ext"; do
|
|
without_ext="${file%.*}"
|
|
cp -v "$file" "$without_ext-latest.$ext"
|
|
cp -v "$file" "$without_ext-$GIT_VERSION.$ext"
|
|
done
|
|
done
|