feature/ci-cd-drone-migration #3
16
compile.sh
16
compile.sh
@ -21,18 +21,20 @@ runOrFail() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
declare -a run_steps=(
|
declare -a run_steps=(
|
||||||
'compile_stub.sh "Failed to compile stub!"'
|
"compile_stub.sh" "Failed to compile stub!"
|
||||||
'compile_vergen.sh "Versions failed to compile"'
|
"compile_vergen.sh" "Versions failed to compile"
|
||||||
'compile_sources.sh "Failed to compile FPC Sources!"'
|
"compile_sources.sh" "Failed to compile FPC Sources!"
|
||||||
'compile_link.sh "Failed linking!"'
|
"compile_link.sh" "Failed linking!"
|
||||||
'compile_isogen.sh "Failed to create ISO!"'
|
"compile_isogen.sh" "Failed to create ISO!"
|
||||||
)
|
)
|
||||||
|
|
||||||
for command in "${run_steps[@]}"
|
for ((i=0; i<${#run_steps[@]}; i+=2))
|
||||||
do
|
do
|
||||||
if [ "$ERRCOUNT" -eq "0" ]
|
if [ "$ERRCOUNT" -eq "0" ]
|
||||||
then
|
then
|
||||||
runOrFail $(pwd)/$command
|
script=$(pwd)/"${run_steps[$i]}"
|
||||||
|
message="${run_steps[$i+1]}"
|
||||||
|
runOrFail "$script" "$message"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
@ -5,4 +5,3 @@ echo " "
|
|||||||
echo "Compiling Stub..."
|
echo "Compiling Stub..."
|
||||||
echo " "
|
echo " "
|
||||||
nasm -f elf src/stub/stub.asm -o lib/stub.o
|
nasm -f elf src/stub/stub.asm -o lib/stub.o
|
||||||
exit 1
|
|
Loading…
x
Reference in New Issue
Block a user