2007-04-28 06:09:51 -05:00
|
|
|
@echo off
|
2008-02-08 16:23:25 -06:00
|
|
|
setlocal
|
2007-04-28 06:09:51 -05:00
|
|
|
|
|
|
|
if not exist ssleay32.dll (
|
|
|
|
echo.
|
|
|
|
echo Did not find ssleay32.dll in current directory.
|
2009-02-08 07:02:56 -06:00
|
|
|
echo Please start this cmd file in the bin directory created by the setup.exe.
|
2007-04-28 06:09:51 -05:00
|
|
|
goto error
|
|
|
|
)
|
|
|
|
|
2007-05-01 17:05:42 -05:00
|
|
|
echo.
|
|
|
|
echo * Check Perl
|
|
|
|
echo.
|
2008-02-08 16:23:25 -06:00
|
|
|
perl -e "exit(int($]));"
|
|
|
|
set _perlmajor=%errorlevel%
|
|
|
|
perl -e "$ver=1000*sprintf(\"%%.3f\", $]); exit(int($ver)-5000);"
|
|
|
|
set _perlminor=%errorlevel%
|
|
|
|
if %_perlmajor% equ 5 (
|
|
|
|
if %_perlminor% equ 10 (
|
2008-09-10 11:16:50 -05:00
|
|
|
set _perlversion=5.10
|
|
|
|
goto ccp
|
2008-02-08 16:23:25 -06:00
|
|
|
)
|
|
|
|
if %_perlminor% equ 8 (
|
|
|
|
set _perlversion=5.8
|
|
|
|
goto ccp
|
|
|
|
)
|
|
|
|
if %_perlminor% equ 6 (
|
|
|
|
set _perlversion=5.6
|
|
|
|
goto ccp
|
|
|
|
)
|
2007-05-01 17:05:42 -05:00
|
|
|
)
|
|
|
|
echo.
|
|
|
|
echo Did not find a usable perl.
|
2008-02-08 16:23:25 -06:00
|
|
|
echo Please install ActivePerl 5.8 (http://www.activestate.com/store/activeperl)
|
2007-05-01 17:05:42 -05:00
|
|
|
echo and add the bin directory to your Path environment variable.
|
|
|
|
goto error
|
|
|
|
:ccp
|
|
|
|
|
2007-04-28 06:09:51 -05:00
|
|
|
echo * Install DateManip
|
|
|
|
echo.
|
2008-09-13 09:45:41 -05:00
|
|
|
perl -x -S ppm install Date-Manip
|
|
|
|
if %errorlevel% neq 0 (
|
2008-09-10 11:16:50 -05:00
|
|
|
perl -x -S ppm install DateManip
|
2008-09-13 09:45:41 -05:00
|
|
|
if %errorlevel% neq 0 goto error
|
2008-09-10 11:16:50 -05:00
|
|
|
)
|
2007-04-28 06:09:51 -05:00
|
|
|
|
|
|
|
echo.
|
|
|
|
echo * Install Crypt-SSLeay
|
|
|
|
echo.
|
|
|
|
set OLDPATH=%PATH%
|
|
|
|
set PATH=%CD%;%PATH%
|
2008-09-10 11:16:50 -05:00
|
|
|
if %_perlversion% == 5.10 (
|
|
|
|
perl -x -S ppm install Crypt-SSLeay
|
|
|
|
) else if %_perlversion% == 5.8 (
|
2007-05-01 17:05:42 -05:00
|
|
|
echo anything | perl -x -S ppm install http://theoryx5.uwinnipeg.ca/ppms/Crypt-SSLeay.ppd
|
|
|
|
) else (
|
|
|
|
perl -x -S ppm install http://theoryx5.uwinnipeg.ca/ppmpackages/Crypt-SSLeay.ppd
|
|
|
|
)
|
2007-04-28 06:09:51 -05:00
|
|
|
set errlvlbak=%errorlevel%
|
|
|
|
set PATH=%OLDPATH%
|
|
|
|
if %errlvlbak% neq 0 goto error
|
|
|
|
|
|
|
|
echo.
|
|
|
|
echo * Install Finance-Quote
|
|
|
|
echo.
|
|
|
|
perl -x -S ppm install Finance-Quote
|
2007-05-01 09:03:44 -05:00
|
|
|
if %errorlevel% neq 0 goto error
|
2007-04-28 06:09:51 -05:00
|
|
|
|
|
|
|
echo.
|
|
|
|
echo * Run gnc-fq-check
|
|
|
|
echo.
|
|
|
|
perl -w gnc-fq-check
|
|
|
|
if %errorlevel% neq 0 goto error
|
|
|
|
|
2007-04-28 10:28:44 -05:00
|
|
|
echo.
|
|
|
|
echo * Run gnc-fq-helper
|
|
|
|
echo.
|
|
|
|
echo (yahoo "AMZN") | perl -w gnc-fq-helper
|
2007-05-01 09:03:44 -05:00
|
|
|
if %errorlevel% neq 0 goto error
|
2007-04-28 10:28:44 -05:00
|
|
|
|
2007-04-28 06:09:51 -05:00
|
|
|
echo.
|
|
|
|
echo * Installation succeeded
|
|
|
|
echo.
|
|
|
|
goto end
|
|
|
|
|
|
|
|
:error:
|
|
|
|
echo.
|
|
|
|
echo An error occured, see above.
|
|
|
|
echo.
|
|
|
|
|
|
|
|
:end
|
|
|
|
pause
|