You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As you found out, installing PerlPowerTools with a CPAN client is dangerous.
But, anyway, the user might want to use those scripts by installing them in a CPAN client-managed path, and then selectively add some of them in his $ENV{PATH} using symlinks or shims.
So I propose to move all scripts from bin/ to lib/PerlPowerTools/. We could even add an utility script ppt-install that would allow the user to do the selective installation once the distribution is installed.
The text was updated successfully, but these errors were encountered:
There is a drawback to this approach: ExtUtils::MakeMaker knows how to modify the shee-bang of files in bin/, but it will not touch files in lib/PerlPowerTools/. Which means the Makefile.PL will have to be improved to handle that.
I've changed how the programs are installed. If the user wants to do something fancy, which I think is going to be rare (no one has ever asked for it), they can do that very rare thing on their own. They don't need the CPAN installer.
I generally disfavor "might" sorts of features for hypothetical users.
I'm going to close this issue, but if you are interested in it still, fork the repo and implement your idea. We can see how that goes and if its better than what there is already. Something that requires changes in ExtUtils::MakeMaker is probably a non-starter. However, you don't have to store them under lib/ and still give up the shebang processing. You can install them into the same place as lib by fooling with MakeMaker variables. I tried that though, and finally gave up. Now I just set INSTALL_BASE for them.
As you found out, installing PerlPowerTools with a CPAN client is dangerous.
But, anyway, the user might want to use those scripts by installing them in a CPAN client-managed path, and then selectively add some of them in his
$ENV{PATH}
using symlinks or shims.So I propose to move all scripts from
bin/
tolib/PerlPowerTools/
. We could even add an utility scriptppt-install
that would allow the user to do the selective installation once the distribution is installed.The text was updated successfully, but these errors were encountered: