nferraz / st

simple statistics from the command line
MIT License
926 stars 69 forks source link

Modify source script to be more portable. #6

Closed gabeguz closed 11 years ago

gabeguz commented 11 years ago

MakeMaker will replace the '#!perl -T' line w/the builders perl location, properly expanded when you run perl Makefile.PL -- check in generated ./blib/script/st to verify, and when you make install -- it will be the proper perl path.

gabeguz commented 11 years ago

Hi, thanks for fixing the shebang issue I was having. Works great. I was doing some reading though and I think this might be a better way to do that. It seems that MakeMaker will replace "!#perl -T" with the full path the the users perl program. I tested on OpenBSD and it seems to work properly, i.e. when I run make, and then make install and examine the installed script, it's indeed pointing to my version of perl.

nferraz commented 11 years ago

Thanks!