Subject: | 5.12.1.0.beta_1 - turning relocation.pl + update_env.pl into *.bat |
Hi Curtis,
I know that you are probably not a fan of this idea but i think it can make user's life much easier.
Please consider turning the scripts relocation.pl + update_env.pl in strawberry installation root into relocation.bat + update_env.bat.
The idea is very similar to how pl2bat works:
Show quoted text
@echo off
if "%OS%" == "Windows_NT" goto WinNT
Show quoted text
:WinNT
Show quoted text
@rem ';
Show quoted text
... here comes the perl code ...
__END__
:endofperl
Show quoted text
The new relocation.bat + update_env.bat can be executed in two ways
1/ direcly by launching relocation.bat
2/ by starting: perl relocation.bat
--
kmx
I know that you are probably not a fan of this idea but i think it can make user's life much easier.
Please consider turning the scripts relocation.pl + update_env.pl in strawberry installation root into relocation.bat + update_env.bat.
The idea is very similar to how pl2bat works:
Show quoted text
###### sample *.bat ######
@rem = '--*-Perl-*--@echo off
if "%OS%" == "Windows_NT" goto WinNT
Show quoted text
%~dp0perl\bin\perl -x -S "%0" %1 %2 %3 %4 %5 %6 %7 %8 %9
goto endofperl:WinNT
Show quoted text
%~dp0perl\bin\perl -x -S %0 %*
goto endofperl@rem ';
Show quoted text
#!perl
... here comes the perl code ...
__END__
:endofperl
Show quoted text
######
The new relocation.bat + update_env.bat can be executed in two ways
1/ direcly by launching relocation.bat
2/ by starting: perl relocation.bat
--
kmx