From 2e00977f5676b89e95e05b3cf08f77754eeaf9dd Mon Sep 17 00:00:00 2001 From: Pablo Curiel Date: Sat, 21 Nov 2020 02:13:50 -0400 Subject: [PATCH] Update build.sh --- build.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/build.sh b/build.sh index 595d182..af9462a 100644 --- a/build.sh +++ b/build.sh @@ -8,6 +8,8 @@ rm -f ./*.tar.bz2 rm -rf ./code_templates/tmp mkdir ./code_templates/tmp +make clean + for f in ./code_templates/*.c; do basename="$(basename "$f")" filename="${basename%.*}" @@ -21,16 +23,18 @@ for f in ./code_templates/*.c; do rm -f ./source/main.c cp $f ./source/main.c - make BUILD_TYPE="$filename" clean - make BUILD_TYPE="$filename" -j 12 + make BUILD_TYPE="$filename" + rm -f ./build/main.o ./build/main.d mkdir ./code_templates/tmp/$filename cp ./$filename.nro ./code_templates/tmp/$filename/nxdumptool-rewrite.nro #cp ./$filename.elf ./code_templates/tmp/$filename/nxdumptool-rewrite.elf - make BUILD_TYPE="$filename" clean + rm -f ./$filename.* done +make clean + cd ./code_templates/tmp tar -cjf ../../$tar_filename *