[pacman-dev] [PATCH] makepkg : switch from getopt to getopts builtin
themolok.ml at gmail.com
Tue Jun 3 10:32:52 EDT 2008
On Tue 2008-06-03 10:45, Xavier wrote:
> On Mon, Jun 2, 2008 at 5:11 PM, Alessio Bolognino <themolok.ml at gmail.com> wrote:
> > Maybe dropping all long options is not a great idea: makepkg has a lot
> > of options and find an alphanumeric character for each is not that
> > easy/intuitive; Furthermore getopt is ported virtually everywhere: Mac
> > OS X, FreeBSD, OpenBSD, NetBSD etc. and stuff like asciidoc
> > depends upon it.
> The reason of that patch is that the different getopt implementations
> are not compatible :
> The arguments parsing currently does not work on osx / bsd.
Actually FreeBSD and NetBSD have in their port tree "getopt", which is
this one: http://software.frodo.looijaard.name/getopt/
as you can see, is the same getopt in util-linux;
in OpenBSD's tree is called gnugetopt, but it's still the same software.
In Mac OS X it can be installed with macports, and it's called "getopt".
Alessio (molok) Bolognino
Please send personal email to themolok at gmail.com
Public Key http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xFE0270FB
GPG Key ID = 1024D / FE0270FB 2007-04-11
Key Fingerprint = 9AF8 9011 F271 450D 59CF 2D7D 96C9 8F2A FE02 70FB
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 194 bytes
Desc: not available
More information about the pacman-dev