From c74558bc9f438f6f3eb6fe7a49bfbbe579c8da9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Francisco=20Calder=C3=B3n?= Date: Mon, 27 May 2024 09:48:50 -0300 Subject: [PATCH] Improve cc script --- cross-compile.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/cross-compile.sh b/cross-compile.sh index e8719085..67bc6bdb 100755 --- a/cross-compile.sh +++ b/cross-compile.sh @@ -2,10 +2,12 @@ # To make this work you need to have cross installed # cargo install cross app="mostro" -file="archs" +archs_file="archs" manifest="manifest.txt" -arch=`cat $file` -mkdir -p bin +arch=`cat $archs_file` +if [ ! -d bin ]; then + mkdir bin +fi rm bin/* for i in $arch; do echo "Cross compiling for $i"