a getopt[_long] implementation with GNU semantics, taken from netbsd
- C 96.6%
- Makefile 1.9%
- Shell 1.5%
| .gitignore | init | |
| create-dist.sh | add tool to create a dist tarball | |
| gnu_getopt.c | update copyright info | |
| gnu_getopt.h | change names | |
| Makefile | fix install target | |
| README | fix typo | |
gnu getopt compatibility package for musl usage: make; make prefix= DESTDIR= install then to compile a package, add to CFLAGS="-Dgetopt=gnu_getopt -Dgetopt_long=gnu_getopt_long -Dgetopt_long_only=gnu_getopt_long_only" LDFLAGS="-lgnu_getopt"