#!/bin/sh
# 
#    COPYEX.SH
#
#    Moves examples from WODocumentRoot, if they haven't been laid down yet.

document_root=$1
next_root=$2

cp=$next_root/Developer/Executables/Utilities/cp.exe
echo=$next_root/Developer/Executables/Utilities/echo.exe
mv=$next_root/Developer/Executables/Utilities/mv.exe
rm=$next_root/Developer/Executables/Utilities/rm.exe

ex_src=$next_root/Library/WebObjects/WODocumentRoot/WebObjects
ex_dst=$document_root/WebObjects

$echo "Moving WebObjects examples from $ex_src to $ex_dst"
$mv $ex_src/Examples $ex_dst
$cp -r $ex_src/* $ex_dst
$rm -rf $next_root/Library/WebObjects/WODocumentRoot
