mirror of
https://github.com/DarkMatterCore/nxdumptool.git
synced 2024-11-12 21:46:39 +00:00
Update build.sh
This commit is contained in:
parent
6715242fed
commit
2e00977f56
1 changed files with 7 additions and 3 deletions
10
build.sh
10
build.sh
|
@ -8,6 +8,8 @@ rm -f ./*.tar.bz2
|
||||||
rm -rf ./code_templates/tmp
|
rm -rf ./code_templates/tmp
|
||||||
mkdir ./code_templates/tmp
|
mkdir ./code_templates/tmp
|
||||||
|
|
||||||
|
make clean
|
||||||
|
|
||||||
for f in ./code_templates/*.c; do
|
for f in ./code_templates/*.c; do
|
||||||
basename="$(basename "$f")"
|
basename="$(basename "$f")"
|
||||||
filename="${basename%.*}"
|
filename="${basename%.*}"
|
||||||
|
@ -21,16 +23,18 @@ for f in ./code_templates/*.c; do
|
||||||
rm -f ./source/main.c
|
rm -f ./source/main.c
|
||||||
cp $f ./source/main.c
|
cp $f ./source/main.c
|
||||||
|
|
||||||
make BUILD_TYPE="$filename" clean
|
make BUILD_TYPE="$filename"
|
||||||
make BUILD_TYPE="$filename" -j 12
|
rm -f ./build/main.o ./build/main.d
|
||||||
|
|
||||||
mkdir ./code_templates/tmp/$filename
|
mkdir ./code_templates/tmp/$filename
|
||||||
cp ./$filename.nro ./code_templates/tmp/$filename/nxdumptool-rewrite.nro
|
cp ./$filename.nro ./code_templates/tmp/$filename/nxdumptool-rewrite.nro
|
||||||
#cp ./$filename.elf ./code_templates/tmp/$filename/nxdumptool-rewrite.elf
|
#cp ./$filename.elf ./code_templates/tmp/$filename/nxdumptool-rewrite.elf
|
||||||
|
|
||||||
make BUILD_TYPE="$filename" clean
|
rm -f ./$filename.*
|
||||||
done
|
done
|
||||||
|
|
||||||
|
make clean
|
||||||
|
|
||||||
cd ./code_templates/tmp
|
cd ./code_templates/tmp
|
||||||
tar -cjf ../../$tar_filename *
|
tar -cjf ../../$tar_filename *
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue