imapsync/examples/install_modules.bat
Nick Bebout 6ff9b67554 1.547
2013-07-05 17:26:28 -05:00

31 lines
783 B
Batchfile

REM $Id: install_modules.bat,v 1.5 2013/07/03 12:00:23 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 ^
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