[pass] [patch] use getopt to regularize options
Jason A. Donenfeld
Jason at zx2c4.com
Wed Sep 12 12:42:56 CEST 2012
Sounds good. So the Homebrew formula will just
s:getopt:/usr/local/opt/gnu-getopt/getopt:g then. Easy enough.
Brian -- I made some quirks and pushed it upstream here:
http://git.zx2c4.com/password-store/commit/?id=2ac8b6577f806b8bd4cbc103d2837ebed68f6778
Thanks for the contribution!
On Wed, Sep 12, 2012 at 12:27 PM, Dmitry Medvinsky <dmedvinsky at gmail.com> wrote:
> It appears to me it doesn't symlink the binary anywhere at all:
>
> dmedvinsky at mc-air in /u/local (master $)
>><((±> find . -name '*getopt*'
> ./Cellar/gnu-getopt
> ./Cellar/gnu-getopt/1.1.4/bin/getopt
> ./Cellar/gnu-getopt/1.1.4/share/man/man1/getopt.1
> ./Cellar/jasper/1.900.1/include/jasper/jas_getopt.h
> ./Cellar/ruby/1.9.3-p194/lib/ruby/1.9.1/getoptlong.rb
> ./Cellar/ruby/1.9.3-p194/share/ri/1.9.1/system/OptionParser/Arguable/getopts-i.ri
> ./Cellar/ruby/1.9.3-p194/share/ri/1.9.1/system/OptionParser/getopts-c.ri
> ./Cellar/ruby/1.9.3-p194/share/ri/1.9.1/system/OptionParser/getopts-i.ri
> ./Library/Formula/gengetopt.rb
> ./Library/Formula/gnu-getopt.rb
> ./opt/gnu-getopt
>
> ./opt/gnu-getopt is a symbolic link to ../Cellar/gnu-getopt/1.1.4
>
> On Wed, Sep 12, 2012 at 2:18 PM, Jason A. Donenfeld <Jason at zx2c4.com> wrote:
>> It looks like Homebrew has:
>>
>> https://github.com/mxcl/homebrew/blob/master/Library/Formula/gnu-getopt.rb
>>
>> Would someone investigate this, and tell me how it works? Does it
>> install it into /usr/local/bin, and is /usr/local/bin, by default
>> higher in PATH than /usr/bin? Or does it install it as gnu_getopt,
>> and so I need to change the names of functions? Or what? What's its
>> invocation?
>>
>> Running out the door now, but I'll look into it later.
>> _______________________________________________
>> Password-Store mailing list
>> Password-Store at lists.zx2c4.com
>> http://lists.zx2c4.com/listinfo.cgi/password-store-zx2c4.com
--
Jason A. Donenfeld
Deep Space Explorer
+33 6 51 90 82 66
www.jasondonenfeld.com
More information about the Password-Store
mailing list