home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
c't freeware shareware 1997
/
CT_SW_97.ISO
/
mac
/
Software
/
entwickl
/
win95
/
plsei306.exe
/
bin
/
perlscript-install.bat
next >
Wrap
DOS Batch File
|
1996-12-12
|
2KB
|
79 lines
@rem = '--*-Perl-*--';
@rem = '
@echo off
if exist perl.exe goto perlhere
cd bin
if not exist perl.exe goto perlnotthere
:perlhere
if not exist Perl300.dll goto perlnotthere
if not exist Perlglob.exe goto perlnotthere
if not exist PerlSE.dll goto perlscriptnotthere
echo Installing PerlScript
pause
perl.exe PerlScript-install.bat %1 %2 %3 %4 %5 %6 %7 %8 %9
if errorlevel 1 goto perlerror
goto endofperl
@rem ';
BEGIN{
@INC = qw( ..\Lib ..\Ext );
};
# xxx get rid of this dpreciated syntax !!!!
#(c) 1996 Microsoft Corporation. All rights reserved.
# Developed by ActiveWare Internet Corp., http://www.ActiveWare.com
require 'NT.ph';
require 'ctime.pl';
$date = ctime( time );
sub MyLog ($) {
( $message ) = @_;
print LOG $message;
print $message;
}
sub gripe ($) {
( $message ) = @_;
print LOG $message;
warn $message;
}
open ( LOG, '>>install.log' ) || warn "Couldn't open log file!\n";
MyLog( '***** '.$date );
chop( $perldir = `cd` );
MyLog( "Installing PerlScript into $perldir" );
Win32::RegisterServer('PerlSE.dll') ?
MyLog ("\nPerlScript installed successfully") :
gripe ("\nError registering PerlSE.dll");
print "\nopening release.txt...\n";
__END__
:perlerror
echo UH-OH... something bad happened
goto done
:perlnotthere
echo Could not find Perl interpreter!!
echo *gasp* *wheez* *choke*
echo Did you install PerlScript into the same directory
echo as Perl for Win32???
echo You need to install Perl for Win32 before PerlScript
goto endofperl
:perlscriptnotthere
echo Did you install PerlScript into the same directory as Perl?
:endofperl
notepad ..\docs\PerlScript\release.txt
:done
pause