[Lazarus] Handy script for Firebird users
Graeme Geldenhuys
graemeg.lists at gmail.com
Wed Apr 30 13:13:35 CEST 2008
Joost van der Sluis wrote:
> And you didn't write it in Pascal because.... ?
>
> Joost
Because the deployment PC's will not have FPC on them.
Ummm... Then again, it takes all the parameters it needs for
customization. Also, if I make it a console app, it will be
cross-platform to. :)
How to you handle standard input like was done in the script?
------------copy-------------
echo -n "Creating the database $database ..."
${ISQL} << EOF
set sql dialect 3;
CREATE DATABASE "$database";
commit;
EOF
if [ ! $? = 0 ]; then
echo "Failed."
else
echo "Done."
fi
------------end-------------
Regards,
- Graeme -
_______________________________________________________
fpGUI - a cross-platform GUI toolkit using Free Pascal
http://opensoft.homeip.net/fpgui/
More information about the Lazarus
mailing list