#!/bin/sh -x

ROOT_DIR=$1
INDEX_SCRIPT_DIR=${ROOT_DIR}/index_scripts

CWD=`pwd`

echo
echo "Running index files"
echo 
echo "Note that the Indexer needs to be rerun after any data change"
echo

cd $INDEX_SCRIPT_DIR
sh index_all

cd $CWD

exit 0
