Skip Menu |
 

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

Report information
The Basics
Id: 56015
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: Strawberry 5.12.0-RC - idea (relocation.pl)
Hi,

I would like to propose making relocation easier by creating a simple relocation.bat batch file in the root of strawberry installation.

relocation.bat could be as simple as this:
----------
@%~dp0perl\bin\perl.exe %~dp0relocation.pl %*
----------

Or if we do not want to have both relocation.pl + relocation.bat we can create just one relocation.bat in pl2bat style.

P.S. please not my little fix I have done during my testing of relocation.pl
http://fisheye2.atlassian.com/browse/cpan/trunk/Perl-Dist-WiX/share/relocation.pl?r1=11737&r2=11779

--
kmx

On Sun Mar 28 03:31:10 2010, KMX wrote: Show quoted text
> Hi, > > I would like to propose making relocation easier by creating a simple > relocation.bat batch file in the root of strawberry installation. > > relocation.bat could be as simple as this: > ---------- > @%~dp0perl\bin\perl.exe %~dp0relocation.pl %* > ---------- > > Or if we do not want to have both relocation.pl + relocation.bat we > can create > just one relocation.bat in pl2bat style. > > P.S. please not my little fix I have done during my testing of > relocation.pl > http://fisheye2.atlassian.com/browse/cpan/trunk/Perl-Dist- > WiX/share/relocation.pl?r1=11737&r2=11779
I'm afraid that my batch file skills are not as high as I would like - is %~dp0 the current directory or the directory containing the batch file? If it's the second, I'll add it in, and then fix the readme.txt to compensate. I noticed your little fix - It's a good one, but you also need to change what the documentation says the default for --file should be, because you changed that as well (--file becomes @files).
Show quoted text
> I'm afraid that my batch file skills are not as high as I would like -
> is %~dp0 the current directory or the directory containing the batch file?

Show quoted text
%~dp0 = the directory containing the batch file

Show quoted text
> I noticed your little fix - It's a good one, but you also need to change
> what the documentation says the default for --file should be, because
> you changed that as well (--file becomes @files).

I missed that one necessary doc patch, sorry.

--
kmx

Download (untitled) / with headers
text/plain 189b
Since this is something that only needs to be done once (hopefully), I won't be making this a batch file. (been thinking over this for a while) Setting to patched because of other changes.
Dne Po 12.dub.2010 08:32:16, CSJEWELL napsal(a):
Show quoted text
> Since this is something that only needs to be done once (hopefully), I
> won't be making this a batch file. (been thinking over this for a while)
>
> Setting to patched because of other changes.

OK, I accept your decision.

I find relocation.bat usefull especially for users downloading ZIP distributions like me (you simply unzip & click on relocation.bat) - considering that these users are mostly slightly advanced thay might be able to run relocation.pl manually without big troubles.

What about to combine relocation.pl and relocation.bat into one file? - see attached kmx_relocation.bat

--
kmx
Subject: kmx_relocation.bat
Download kmx_relocation.bat
application/octet-stream 6.9k

Message body not shown because it is not plain text.



This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.