mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-16 21:28:33 +03:00
Call the script from the proper directory, and cd into the topdir on top of the script. Fixes: /build/contrib/jenkins.sh: line 71: contrib/prepare_upload.sh: No such file or directory Related: OS#4413 Change-Id: Icbfaa5579aab887830ca90b24a2e322df8d98f4f
17 lines
433 B
Bash
Executable File
17 lines
433 B
Bash
Executable File
#!/bin/sh -e
|
|
# Create copies of binaries with -latest, -$GIT_VERSION (OS#4413, OS#3452)
|
|
cd "$(dirname "$0")/.."
|
|
|
|
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
|