getopt for Windows

Anything
Awatar użytkownika
admin
Site Admin
Posty: 104
Rejestracja: ndz lip 17, 2011 8:51 am

getopt for Windows

Post autor: admin »

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
  1. Delete gnu/*.o files - if they exist, because they should not be there
  2. To build getopt.exe you use the following command line:

    Kod: Zaznacz cały

    LIBCGETOPT=0 WITHOUT_GETTEXT=1 CC=/usr/bin/i586-mingw32msvc-gcc make -e
    CC setting is for cross compiling on Linux, omit it if you sit directly on windows (mingw required). Ignore the warnings
  3. Rename getopt to getopt.exe
ODPOWIEDZ