#!bin/sh
#
# script to build demonstration thesaurus database on Linux
#
echo -n "Enter a name for the thesaurus database of MDweb : "
read database
echo -n "Enter the owner of the database (postgres user account with rights of DB creation) : "
read owner
pg_dump -d $database > $database.sql
dropdb $database
createdb -O $owner $database -E UNICODE
psql -d $database < dump-thesaurus-eng.sql