#!/bin/bash

gsdlsrcdir=src/java/org/greenstone/gsdl3

file_list=`cat java-src-file-list.txt`

echo ""
for f in $file_list ; do
  echo "Adding $gsdlsrcdir/$f to gsdl3 java code-base"

  /bin/cp "$gsdlsrcdir/$f" "../../$gsdlsrcdir/$f"
done

classesdir=web/WEB-INF/classes

prop_list=`cat prop-file-list.txt`

echo ""
for f in $prop_list ; do
  echo "Adding properties/$f to gsdl3 properties area"

  /bin/cp "properties/$f" "../../$classesdir/$f"
done

echo ""
echo "Copying weka.jar to ../../web/WEB-INF/"
/bin/cp jars/weka.jar ../../web/WEB-INF/lib/.

echo ""
echo "Assuming you have a core Greenstone3 compiled up ..."
echo "Add the new service in with:"
echo "  cd ../.."
echo "  ant compile-core restart"
echo ""


