#!/bin/sh

subdirs="developer example student teacher"

echo "+--------------------------------------------------------------------------+"
echo "| This script sould be launched after a fresh dowload of modules for wims. |"
echo "| to do this, you must have wims installed, go to the Inline maintenance   |"
echo "| facility, and update/download modules from the Wimedu repository.        |"
echo "+--------------------------------------------------------------------------|"
echo "| this script will populate the directory help/ with the following         |"
echo "| subdirectories:                                                          |"
for s in $subdirs; do
    echo "| - $s"
done
echo "+--------------------------------------------------------------------------+"

mkdir -p help
for s in $subdirs; do
    rsync -av /var/lib/wims/public_html/modules/help/$s help
done
