This commit is contained in:
Mario Voigt 2025-03-19 01:45:48 +01:00
parent 3a606c50fc
commit abc8043045

View File

@ -10,8 +10,8 @@ mkdir -p ${DOWNLOAD}/
# architecture mapping array linux <-> rust
declare -A ARCHES_LR=(
["armv7"]=armv7-unknown-linux-gnueabihf
["aarch64"]=aarch64-unknown-linux-gnu
#["armv7"]=armv7-unknown-linux-gnueabihf
#["aarch64"]=aarch64-unknown-linux-gnu
["amd64"]=x86_64-unknown-linux-gnu
)
@ -44,6 +44,12 @@ BFFHV=$(grep "Standards-Version: " fabaccess-bffh-src/debian/control | awk -F '
echo -e "BFFH target build version: ${BFFHV}"
echo -e "BFFH packages (*.deb/*.rpm) will be put here: ${DOWNLOAD}"
# pre-cleanup of files of possibly existing previous builds
rm /tmp/fabaccess-bffh* > /dev/null 2>&1
rm ${SRCDIR}/fabaccess-bffh* > /dev/null 2>&1
rm -rf /tmp/fabaccess-bffh-${BFFHV}/ > /dev/null 2>&1
rm -rf ${SRCDIR}/fabaccess-bffh-${BFFHV}/ > /dev/null 2>&1
# https://www.cyberciti.biz/faq/bash-for-loop-array/
for ARCH_L in "${!ARCHES_LR[@]}"; do