mirror of
https://github.com/imapsync/imapsync.git
synced 2024-11-17 00:02:29 +01:00
34 lines
862 B
Batchfile
Executable File
34 lines
862 B
Batchfile
Executable File
|
|
@REM $Id: install_module_one.bat,v 1.11 2019/12/11 18:57:04 gilles Exp gilles $
|
|
|
|
@SETLOCAL
|
|
@ECHO OFF
|
|
@ECHO Currently running through %0 %*
|
|
SET SHELL=
|
|
SET
|
|
REM EXIT
|
|
|
|
CD /D %~dp0
|
|
|
|
perl -v
|
|
IF ERRORLEVEL 1 ECHO Perl needed. Install Strawberry Perl. Get it at http://strawberryperl.com/ ^
|
|
&& EXIT /B
|
|
|
|
@ECHO perl is here
|
|
@REM PAUSE
|
|
@REM EXIT
|
|
FOR %%M in (
|
|
IO::Tee ^
|
|
) DO perl -m%%M -e "print qq{Updating %%M $%%M::VERSION \n}" ^
|
|
& cpanm --force %%M
|
|
|
|
REM & cpanm --force %%M
|
|
REM IO::Socket::SSL Net::SSLeay PAR::Packer IO::Tee Crypt::OpenSSL::RSA Encode::IMAPUTF7 IO::Socket::IP
|
|
|
|
@ECHO Perl modules for imapsync installed
|
|
@REM Do a PAUSE if run by double-click, aka, explorer (then ). No PAUSE in a DOS window or via ssh.
|
|
IF %0 EQU "%~dpnx0" IF "%SSH_CLIENT%"=="" PAUSE
|
|
EXIT /B
|
|
|
|
@ENDLOCAL
|