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 the export.php executable as a bin in composer.json. #12

Closed bowlofeggs closed 7 years ago

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

Hello @mlocati!

My motivation for all of this was for adding this library to Fedora:

https://bugzilla.redhat.com/show_bug.cgi?id=1413434

I will probably just add a #!/usr/bin/php to the top of export-plural-rules.php and ship that directly, as I don't think we need the separate export-plural-rules executable. Either way you want to go will work OK for me, I can just use sed to add the shebang as needed.

Thanks!

mlocati commented 7 years ago

Great! I checked that the shebang isn't output even when running the script with php export-plural-rules.php.

BTW, since it's a platform-specific stuff, I'd prefer not to do that (for instance, if someone for any reason wants to include 'bin/export-plural-rules.php'; in their PHP code, the shebang is printed out).