From 5bf8881ec8342ecb0668167b957d277616fde4ab Mon Sep 17 00:00:00 2001 From: "aleksandr.vodianov@demlabs.net" <aleksandr.vodianov@demlabs.net> Date: Wed, 15 Dec 2021 00:12:33 +0300 Subject: [PATCH] fixed mistakes --- linux/debian/scripts/compile_and_pack.sh | 4 ++-- linux/debian/scripts/pre-build.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/linux/debian/scripts/compile_and_pack.sh b/linux/debian/scripts/compile_and_pack.sh index e677594..74644de 100755 --- a/linux/debian/scripts/compile_and_pack.sh +++ b/linux/debian/scripts/compile_and_pack.sh @@ -50,7 +50,7 @@ if [[ $(echo $ARCH_VERSIONS | grep arm64) != "" && $error == 0 ]]; then export LD_LIBRARY_PATH=$LD_LIBRARY_PATH_ARM64 ${CMAKE_PATH}cmake -DCMAKE_C_COMPILER=$ARM64_C_COMPILER -DCMAKE_CXX_COMPLIER=$ARM64_CXX_COMPILER -DCMAKE_TARGET_ARCH="arm64" .. && make -j$(nproc) && \ ${CMAKE_PATH}cpack && repack *.deb && mv -v *.deb ../packages/ && rm -r * && \ - && ${CMAKE_PATH}cmake -DCMAKE_BUILD_TYPE=Debug ../ && make -j$(nproc) && ${CMAKE_PATH}cpack && repack *.deb && mv -v *.deb ../packages/ && rm -r * || error=$? + ${CMAKE_PATH}cmake -DCMAKE_BUILD_TYPE=Debug ../ && make -j$(nproc) && ${CMAKE_PATH}cpack && repack *.deb && mv -v *.deb ../packages/ && rm -r * || error=$? unset LD_LIBRARY_PATH done @@ -58,7 +58,7 @@ if [[ $(echo $ARCH_VERSIONS | grep armhf) != "" && $error == 0 ]]; then export LD_LIBRARY_PATH=$LD_LIBRARY_PATH_ARMHF ${CMAKE_PATH}cmake -DCMAKE_C_COMPILER=$ARMHF_C_COMPILER -DCMAKE_CXX_COMPLIER=$ARMHF_CXX_COMPILER -DCMAKE_TARGET_ARCH="armhf" .. && make -j$(nproc) && \ ${CMAKE_PATH}cpack && repack *.deb && mv -v *.deb ../packages/ && rm -r * && \ - && ${CMAKE_PATH}cmake -DCMAKE_BUILD_TYPE=Debug ../ && make -j$(nproc) && ${CMAKE_PATH}cpack && repack *.deb && mv -v *.deb ../packages/ && rm -r * || error=$? + ${CMAKE_PATH}cmake -DCMAKE_BUILD_TYPE=Debug ../ && make -j$(nproc) && ${CMAKE_PATH}cpack && repack *.deb && mv -v *.deb ../packages/ && rm -r * || error=$? unset LD_LIBRARY_PATH done diff --git a/linux/debian/scripts/pre-build.sh b/linux/debian/scripts/pre-build.sh index e491590..831242d 100755 --- a/linux/debian/scripts/pre-build.sh +++ b/linux/debian/scripts/pre-build.sh @@ -24,7 +24,7 @@ extract_version_number ### This is a solution. We modify the changelog only if there are updates and not on build servers. And of course if it's not cmake-based build project. ### let's keep those comments here for a while -if [ $ONBUILDSERVER == 0 ]; then +if [[ $ONBUILDSERVER == 0 ]]; then echo "[WRN] on build platform. Version won't be changed" # okay, so this echo wont be outputted as the condition is not true elif [ ! -e debian/changelog ]; then ### I guess this what's supposed to be added in order to solve the issue with the changelog?+ -- GitLab