#!/bin/sh
echo "#----------------------------------------------#"
echo "# initialize all data sets"
echo "#----------------------------------------------#"

sqlite var/sqlite/qtbuilder < etc/sql/sqlite/application.sql
chmod o+w var/sqlite/qtbuilder
sqlite var/sqlite/qtbuilder < etc/sql/sqlite/configure.sql
chmod o+w var/sqlite/qtbuilder
sqlite var/sqlite/qtbuilder < etc/sql/sqlite/datasets.sql
chmod o+w var/sqlite/qtbuilder
sqlite var/sqlite/qtbuilder < etc/sql/sqlite/fields.sql
chmod o+w var/sqlite/qtbuilder
sqlite var/sqlite/qtbuilder < etc/sql/sqlite/folder.sql
chmod o+w var/sqlite/qtbuilder
sqlite var/sqlite/qtbuilder < etc/sql/sqlite/import_datasets.sql
chmod o+w var/sqlite/qtbuilder
sqlite var/sqlite/qtbuilder < etc/sql/sqlite/page.sql
chmod o+w var/sqlite/qtbuilder
sqlite var/sqlite/qtbuilder < etc/sql/sqlite/skin.sql
chmod o+w var/sqlite/qtbuilder

echo done.