# The contents of this file are subject to the Interbase Public
# License Version 1.0 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy
# of the License at http://www.Inprise.com/IPL.html
#
# Software distributed under the License is distributed on an
# "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express
# or implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code was created by Inprise Corporation
# and its predecessors. Portions created by Inprise Corporation are
# Copyright (C) Inprise Corporation.
#
# All Rights Reserved.
# Contributor(s): ______________________________________.

# restore databases from backup files. these are required for 
# the build process. certain databases are use by GPRE
# while pre-processing some of the .e files.

cd examples
gbak -r atlas.gbk atlas.gdb
gbak -r c_guide.gbk c_guide.gdb
gbak -r emp.gbk emp.gdb
gbak -r nc_guide.gbk nc_guide.gdb
gbak -r stocks.gbk stocks.gdb
gbak -r slides.gbk slides.gdb
cd ../example4
gbak -r empbuild.gbk empbuild.gdb
cd ../example5
gbak -r empbuild.gbk empbuild.gdb
cd ../msgs
gbak -r msg.gbk msg.gdb
cd ../pyxis
gbak -r forms.gbk forms.gdb
cd ../qli
gbak -r help.gbk help.gdb
cd ../utilities
gbak -r rebuild.gbk rebuild.gdb
cd ..

# Now build a couple of databases with only metadata in it
cd jrd
isql -i ../../metadata.sql
isql -i ../../isc.sql
cd ..

