#!/bin/csh

# CSC 468
# Winter 2009
# Project Stage 3  

## Repositories setup script

# all scripts contain only client-side commands. 
# MiniNXBase server is invoked separately

#
#  please edit the lines of the script to make sure that your program will run
#
#  e.g., replace java XpathPlus with  java -cp .:neustore.jar  


# Create four repositories

java XpathPlus CREATE Food

java XpathPlus CREATE Movies

java XpathPlus CREATE Music

java XpathPlus CREATE Money

java XpathPlus CREATE coin

java XpathPlus CREATE present

java XpathPlus CREATE frank

java XpathPlus CREATE eureka

# Populate repositories
# this assumes that the XML files are in the current directory

java XpathPlus INSERT FILE Food FoodRepository.xml

java XpathPlus INSERT FILE Money moneyrepository.xml

java XpathPlus INSERT FILE Music MusicRepository.xml

java XpathPlus INSERT FILE Movies MoviesRepository.xml

java XpathPlus INSERT FILE coin Cent_25_2006.xml

java XpathPlus INSERT FILE present Present.xml

java XpathPlus INSERT FILE frank franks.xml

java XpathPlus INSERT FILE eureka eureka.xml

# Find out useful information about repositories

java XpathPlus LIST

java XpathPlus STATS Food

java XpathPlus STATS Money

java XpathPlus STATS Music

java XpathPlus STATS Movies

java XpathPlus STATS coin

java XpathPlus STATS present

java XpathPlus STATS frank

java XpathPlus STATS eureka
#
# AND WE ARE DONE!
#























