updated helper scripts
All checks were successful
EIVE/eive-obsw/pipeline/head This commit looks good

This commit is contained in:
2022-09-26 11:31:29 +02:00
parent ec91d9977a
commit 7d824f5448
4 changed files with 24 additions and 18 deletions

View File

@ -1,17 +1,21 @@
#!/bin/bash
if [ -f eive-obsw-stripped ]; then
cmake --build . -j
source create-version-file.sh
if [ ! -f eive-obsw-stripped ]; then
echo "No file eive-obsw-stripped found. Please ensure you are in the "
echo "build folder and the OBSW was built properly"
exit 1
fi
if [ -f obsw_version.txt ]; then
if [ ! -f obsw_version.txt ]; then
echo "No OBSW version file found."
echo "You can use the create-version-file.sh script to create it"
exit 1
fi
cmd="tar -cJvf eive-obsw.tar.xz eive-obsw-stripped obsw_version.txt"
echo "Running command ${cmd} to generate compressed SW update archive"
cmd="tar -cJvf eive-sw-update.tar.xz eive-obsw-stripped obsw_version.txt"
echo "Running command ${cmd} to generate compressed SW update archive."
eval ${cmd}
echo "Generated eive-sw-update.tar.xz update archive."