OSSP CVS Repository

ossp - ossp-pkg/getopt/README
Not logged in
[Honeypot]  [Browse]  [Directory]  [Home]  [Login
[Reports]  [Search]  [Ticket]  [Timeline
  [Raw

ossp-pkg/getopt/README

  OSSP's GNU getopt

  DESCRIPTION
  -----------

  This is the OSSP re-packaging of GNU getopt(3). It is based on
  the original GNU getopt(3) as assembled together from the various
  distribution sources. The goal simply is to make a self-contained,
  stand-alone and and consistent GNU getopt(3) distribution available
  -- both within OSSP and externally to at least OpenPKG.

  IMPORT
  ------

  From gcc 4.0.2 (because more stand-alone than original glibc sources):
  [ftp://gcc.gnu.org/pub/gcc/releases/]

    include/getopt.h         -> getopt.h
    libiberty/getopt.c       -> getopt.c
    libiberty/getopt1.c      -> getopt1.c

  From glibc 2.3.5:
  [ftp://ftp.gnu.org/gnu/glibc/]

    posix/tstgetopt.c        -> getopt_test.c
    manual/getopt.texi       -> getopt.texi
  
  From man-pages 2.08:
  [ftp://ftp.kernel.org/pub/linux/docs/manpages/]

    man3/getopt.3            -> getopt.3

  From util-linux 2.12r or even getopt 1.1.3:
  [http://www.kernel.org/pub/linux/utils/util-linux/]
  [http://huizen.dds.nl/~frodol/getopt.html]

    getopt/getopt.1          -> getopt.1
    getopt/getopt.c          -> getopt_main.c

  POST-ADJUSTMENTS
  ----------------

  Apply the following adjustments after importing:
  
  getopt_main.c:

    << #if LIBCGETOPT
    << #include <getopt.h>
    << #else
    << #include "getopt.h"
    << #endif
    << #include "nls.h"

    >> #include "getopt.h"
    >> #define WITHOUT_GETTEXT 1
    >> #define _(x) x

  getopt_test.c:

    << #include <getopt.h>
    >> #include "getopt.h"


CVSTrac 2.0.1