@echo off
echo Cleanup generated files
rem Actually, this script should uninstall files from perl as well ....
rem arguments:
rem %1 = path to perl root

set perl=perl

if "%1" == "" goto install
set perl="%1\bin\perl.exe"
if not exist "%perl%" goto notfound
goto install

:notfound
echo "Cannot find specified perl executable "%perl%", I try using "perl"
set perl=perl

:install
rem ToDo use CPAN module to get + install Module::Build
rem %perl% Build.PL
rem remove all files generated by install.bat
@echo on
%perl% Build realclean
@echo off
pause
