8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 08:03:04 +01:00
firebird-mirror/builds/install/arch-specific/android/AfterUntar.sh
Adriano dos Santos Fernandes 14507af30d Flat Android tree.
2023-02-04 18:32:57 -03:00

27 lines
826 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)" "./build_file -f firebird.msg"
runAndCheckExit "Creating security database" "echo create database \'security5.fdb\'^ | ./isql -q -term ^"
runAndCheckExit "Creating security database metadata" "./isql -q security5.fdb -i security.sql"
#runAndCheckExit "Restore examples database (employee)" "(cd examples/empbuild ; ../.././isql -q -i ../../employe2.sql)"
rm -f security.sql employe2.sql ./build_file AfterUntar.sh