Skip Menu |

This queue is for tickets about the Perl-Dist-Strawberry CPAN distribution.

Report information
The Basics
Id: 57935
Status: resolved
Priority: 0/
Queue: Perl-Dist-Strawberry

People
Owner: Nobody in particular
Requestors: kmx [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



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
###### 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
On Fri May 28 04:17:55 2010, KMX wrote: Show quoted text
> 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: > > ###### sample *.bat ###### > @rem = '--*-Perl-*-- > @echo off > if "%OS%" == "Windows_NT" goto WinNT > %~dp0perl\bin\perl -x -S "%0" %1 %2 %3 %4 %5 %6 %7 %8 %9 > goto endofperl > :WinNT > %~dp0perl\bin\perl -x -S %0 %* > goto endofperl > @rem '; > #!perl > > ... here comes the perl code ... > > __END__ > :endofperl > ###### > > 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
If these will run without having perl in the path, we can do this... That was my worry. Give me a few days to catch up on sleep and other bugs.
Subject: RE: [rt.cpan.org #57935] 5.12.1.0.beta_1 - turning relocation.pl + update_env.pl into *.bat
Date: Fri, 28 May 2010 20:12:18 +0200
To: <bug-Perl-Dist-Strawberry [...] rt.cpan.org>
From: kmx <kmx [...] volny.cz>
Show quoted text
> If these will run without having perl > in the path, we can do this... > That was my worry.
Yes, it works without having perl in PATH. -- kmx
On Fri May 28 14:12:30 2010, kmx@volny.cz wrote: Show quoted text
>
> > If these will run without having perl > > in the path, we can do this... > > That was my worry.
> > Yes, it works without having perl in PATH. > > -- > kmx
r12396 and r12397 should do the trick, then.