mirror of
https://github.com/DarkMatterCore/nxdumptool.git
synced 2024-11-09 20:21:45 +00:00
Update build.sh
to archive debug ELFs after build (#102)
This commit is contained in:
parent
421f0f1482
commit
da8165e778
1 changed files with 4 additions and 3 deletions
7
build.sh
7
build.sh
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
cd "$(dirname "${BASH_SOURCE[0]}")"
|
cd "$(dirname "${BASH_SOURCE[0]}")"
|
||||||
|
|
||||||
archive_filename="nxdumptool-rewrite_poc_$(git rev-parse --short HEAD).7z"
|
archive_filename="nxdumptool-rewrite_poc_$(git rev-parse --short HEAD)"
|
||||||
|
|
||||||
rm -f ./*.7z
|
rm -f ./*.7z
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@ for f in ./code_templates/*.c; do
|
||||||
|
|
||||||
mkdir ./code_templates/tmp/$filename
|
mkdir ./code_templates/tmp/$filename
|
||||||
cp ./$filename.nro ./code_templates/tmp/$filename/$filename.nro
|
cp ./$filename.nro ./code_templates/tmp/$filename/$filename.nro
|
||||||
#cp ./$filename.elf ./code_templates/tmp/$filename/$filename.elf
|
cp ./$filename.elf ./code_templates/tmp/$filename/$filename.elf
|
||||||
|
|
||||||
make BUILD_TYPE="$filename" clean
|
make BUILD_TYPE="$filename" clean
|
||||||
done
|
done
|
||||||
|
@ -41,7 +41,8 @@ done
|
||||||
make clean_all
|
make clean_all
|
||||||
|
|
||||||
cd ./code_templates/tmp
|
cd ./code_templates/tmp
|
||||||
7z a ../../$archive_filename *
|
7z a ../../"$archive_filename.7z" */*.nro
|
||||||
|
7z a ../../"$archive_filename-Debug_ELFs.7z" */*.elf
|
||||||
|
|
||||||
cd ../..
|
cd ../..
|
||||||
rm -f ./source/main.c
|
rm -f ./source/main.c
|
||||||
|
|
Loading…
Reference in a new issue