#!/bin/sh

if [ `id -u` != "0" ]
then
    echo ""
    echo "Sorry, you are not root."; 
    echo ""
    exit 1
fi

for s in `find ../stencils -type d | sed s/..\\\\///`
do
    mkdir -p $INSTALLDIR/kiviomp/$s
    echo -n "Installing $s ... "
    for f in `find ../$s -maxdepth 1 -type f | sed s/..\\\\///`
    do
	install -m 666 ../$f $INSTALLDIR/kiviomp/$f
    done
    echo "done."
done

exit 0