From abc804304506efeff1caaad9fc43e0a07e642716 Mon Sep 17 00:00:00 2001 From: Mario Voigt <mario.voigt@stadtfabrikanten.org> Date: Wed, 19 Mar 2025 01:45:48 +0100 Subject: [PATCH] cleanup --- debian/create-packages.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/debian/create-packages.sh b/debian/create-packages.sh index 49fc66d..b13e9bb 100755 --- a/debian/create-packages.sh +++ b/debian/create-packages.sh @@ -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