imapsync/examples/install_modules.bat
Nick Bebout ce6842565f 1.555
2013-07-25 16:42:01 -05:00

31 lines
798 B
Batchfile

REM $Id: install_modules.bat,v 1.6 2013/07/23 11:30:58 gilles Exp gilles $
@ECHO OFF
ECHO Installing Perl modules for imapsync
REM CD /D %~dp0
perl -v
IF ERRORLEVEL 1 ECHO Perl needed. Install Strawberry Perl. Get it at http://strawberryperl.com/ ^
&& EXIT /B
REM perl is there
FOR %%M in ( IO::Socket IO::Socket::IP ^
Net::SSLeay IO::Socket::SSL ^
Digest::MD5 Digest::HMAC_MD5 ^
Term::ReadKey File::Spec ^
Time::HiRes ^
Data::Uniqid URI::Escape ^
Authen::NTLM ^
Time::Local ^
Mail::IMAPClient ^
PAR::Packer ) DO ECHO Testing %%M ^
& perl -m%%M -e "" || perl -MCPAN -e "install %%M"
ECHO Perl modules for imapsync installed
REM PAUSE