getopt for Windows
: czw wrz 06, 2012 7:29 pm
Getopt is a program to help shell scripts parse command-line parameters. It is included in Linux, but for other systems needs to be supplied externally. Frodo Looijaard wrote it as an improvement of standard Linux version and distributes under GNU GPL 2 (see COPYING file). You need getopt for instance to run xmlto.
Getopt homepage: http://software.frodo.looijaard.name/getopt/
Author's email: frodo@frodo.looijaard.name
Download windows exe and source: getopt-1.1.5.zip (md5sum: c40b0b887683d46b933582ebd4b829c2) sf-mirror
Building from source
Getopt homepage: http://software.frodo.looijaard.name/getopt/
Author's email: frodo@frodo.looijaard.name
Download windows exe and source: getopt-1.1.5.zip (md5sum: c40b0b887683d46b933582ebd4b829c2) sf-mirror
Building from source
- Delete gnu/*.o files - if they exist, because they should not be there
- To build getopt.exe you use the following command line:
CC setting is for cross compiling on Linux, omit it if you sit directly on windows (mingw required). Ignore the warnings
Kod: Zaznacz cały
LIBCGETOPT=0 WITHOUT_GETTEXT=1 CC=/usr/bin/i586-mingw32msvc-gcc make -e - Rename getopt to getopt.exe