Testing Succeeded - Refinement & removal of debugging code
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
- Removed the debug `exit 1` from `compile_stub.sh` - Improved `compile.sh` to use runOrFail in a more suitable way, correctly passing through failure messages.
This commit is contained in:
parent
0b5981242b
commit
04cff2e2c3
16
compile.sh
16
compile.sh
@ -21,18 +21,20 @@ runOrFail() {
|
||||
}
|
||||
|
||||
declare -a run_steps=(
|
||||
'compile_stub.sh "Failed to compile stub!"'
|
||||
'compile_vergen.sh "Versions failed to compile"'
|
||||
'compile_sources.sh "Failed to compile FPC Sources!"'
|
||||
'compile_link.sh "Failed linking!"'
|
||||
'compile_isogen.sh "Failed to create ISO!"'
|
||||
"compile_stub.sh" "Failed to compile stub!"
|
||||
"compile_vergen.sh" "Versions failed to compile"
|
||||
"compile_sources.sh" "Failed to compile FPC Sources!"
|
||||
"compile_link.sh" "Failed linking!"
|
||||
"compile_isogen.sh" "Failed to create ISO!"
|
||||
)
|
||||
|
||||
for command in "${run_steps[@]}"
|
||||
for ((i=0; i<${#run_steps[@]}; i+=2))
|
||||
do
|
||||
if [ "$ERRCOUNT" -eq "0" ]
|
||||
then
|
||||
runOrFail $(pwd)/$command
|
||||
script=$(pwd)/"${run_steps[$i]}"
|
||||
message="${run_steps[$i+1]}"
|
||||
runOrFail "$script" "$message"
|
||||
fi
|
||||
done
|
||||
|
||||
|
@ -4,5 +4,4 @@ echo "======================="
|
||||
echo " "
|
||||
echo "Compiling Stub..."
|
||||
echo " "
|
||||
nasm -f elf src/stub/stub.asm -o lib/stub.o
|
||||
exit 1
|
||||
nasm -f elf src/stub/stub.asm -o lib/stub.o
|
Loading…
x
Reference in New Issue
Block a user