php-gettext / Languages

gettext language list automatically generated from CLDR data
https://php-gettext.github.io/Languages/
Other
70 stars 10 forks source link

Add a shebang to bin/export.php. #13

Closed bowlofeggs closed 7 years ago

bowlofeggs commented 7 years ago

Signed-off-by: Randy Barlow randy@electronsweatshop.com

mlocati commented 7 years ago

Wouldn't this output that line on Windows?

bowlofeggs commented 7 years ago

@mlocati I don't know PHP particularly well and I don't have a Windows machine to test with, so I can't say for sure. However, I would expect the php command line interpreter to ignore the shebang line (as used in your bin/export.cmd. Obviously, don't take my word for it since my knowledge here isn't great.

remicollet commented 7 years ago

There are absolutely no problem with the shebang line which is just ignored on Windows.

Can also set execution bit on this file, and drop the uneeded .sh

mlocati commented 7 years ago

@remicollet @bowlofeggs What about https://github.com/mlocati/cldr-to-gettext-plural-rules/commit/43e3ffcfa113a882aa839b70287d20b3d08c5edf ?

bowlofeggs commented 7 years ago

@mlocati that looks reasonable to me, though I don't think you need to have both the .php file and the extensionless file for Unix systems. As Remi said, you could just put the shebang in the .php file and make it executable and Unix systems will be happy. I don't have a strong preference either way.

mlocati commented 7 years ago

I used the same approach as Doctrine. If that commit of mine is OK for you, I'd close this PR and merge that commit

bowlofeggs commented 7 years ago

I have no objections.

mlocati commented 7 years ago

@bowlofeggs I updated the master branch. If you confirm that the current master suits your needs, I'll add a new release (2.2.0) and close this issue.

bowlofeggs commented 7 years ago

Looks fine, thanks!

mlocati commented 7 years ago

@bowlofeggs v2.2.0 released

bowlofeggs commented 7 years ago

On Mon, 2017-02-06 at 07:25 -0800, Michele Locati wrote:

@bowlofeggs v2.2.0 released

Thanks!