head 1.3; access; symbols GETOPT_20051005:1.3; locks; strict; comment @# @; 1.3 date 2005.10.05.10.15.34; author rse; state Exp; branches; next 1.2; 1.2 date 2005.10.05.10.11.57; author rse; state Exp; branches; next 1.1; 1.1 date 2003.03.07.10.35.16; author rse; state Exp; branches; next ; desc @@ 1.3 log @remember what this beast actually is @ text @ 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 << #else << #include "getopt.h" << #endif << #include "nls.h" >> #include "getopt.h" >> #define WITHOUT_GETTEXT 1 >> #define _(x) x getopt_test.c: << #include >> #include "getopt.h" @ 1.2 log @fresh up sources; add pkgconfig file; upgrade build env to latest GNU tools @ text @d4 9 @ 1.1 log @add an OSSP collection of GNU getopt sources @ text @d4 4 a7 1 From gcc 3.2.2 (because more stand-alone than original glibc sources): d14 1 a14 1 From glibc 2.3.2: d20 1 a20 1 From man-pages 1.56: d25 1 a25 1 From util-linux 2.11 or getopt 1.1.3: d29 9 a37 2 getopt.1 -> getopt.1 getopt.c -> getopt_main.c d39 5 a43 1 Plus replace in getop_main.c: d45 2 d50 5 @