1
0
Fork 0
mirror of https://github.com/DarkMatterCore/nxdumptool.git synced 2024-09-18 21:13:25 +01:00

Add comments to build script (#107)

This commit is contained in:
Kookies 2022-03-22 13:55:06 -06:00 committed by GitHub
parent 77fa25e0e0
commit fcf0fcbedb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,6 +3,7 @@ cd "$(dirname "${BASH_SOURCE[0]}")"
archive_filename="nxdumptool-rewrite_poc_$(git rev-parse --short HEAD)"
# Clean-up from last build
rm -f ./*.7z
rm -rf ./code_templates/tmp
@ -12,6 +13,7 @@ mv ./source/main.cpp ./main.cpp
make clean_all
# Build loop
for f in ./code_templates/*.c; do
basename="$(basename "$f")"
filename="${basename%.*}"
@ -38,12 +40,15 @@ for f in ./code_templates/*.c; do
make BUILD_TYPE="$filename" clean
done
# Post build clean-up
make clean_all
# Package resulting binaries
cd ./code_templates/tmp
7z a ../../"$archive_filename.7z" */*.nro
7z a ../../"$archive_filename-Debug_ELFs.7z" */*.elf
# Final clean-up
cd ../..
rm -f ./source/main.c
rm -rf ./code_templates/tmp