8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 18:03:04 +01:00
firebird-mirror/builds/install/arch-specific/android/AfterUntar.sh
Adriano dos Santos Fernandes 84a0168870 Split Android package into two phases, second one to run in emulator.
Add GitHub action to run second phase in MacOS machine, where Android emulator can run.

Currently this is done for ARM 32/64 builds.
2022-09-06 08:50:47 -03:00

27 lines
835 B
Bash

#!/bin/sh
echo "This script builds arch-specific files, useful for firebird functionality"
runAndCheckExit() {
Msg=$1
Cmd=$2
echo $Msg please wait...
eval $Cmd
ExitCode=$?
if [ $ExitCode -ne 0 ]
then
echo "Aborted: The command $Cmd "
echo " failed with error code $ExitCode"
exit $ExitCode
fi
}
runAndCheckExit "Build messages file (firebird.msg)" "bin/build_file -f firebird.msg"
runAndCheckExit "Creating security database" "echo create database \'security5.fdb\'^ | bin/isql -q -term ^"
runAndCheckExit "Creating security database metadata" "bin/isql -q security5.fdb -i security.sql"
runAndCheckExit "Restore examples database (employee)" "(cd examples/empbuild ; ../../bin/isql -q -i ../../employe2.sql)"
rm -f security.sql employe2.sql bin/build_file AfterUntar.sh