debian/0000755000000000000000000000000012142677537007204 5ustar debian/compat0000644000000000000000000000000212142677270010374 0ustar 9 debian/patches/0000755000000000000000000000000012142677270010625 5ustar debian/patches/series0000644000000000000000000000001412142677270012035 0ustar 01man.patch debian/patches/01man.patch0000644000000000000000000000103112142677270012555 0ustar Description: Update manpage NAME section Author: Bart Martens Forwarded: no --- doc/gengetopt.1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- gengetopt.orig/doc/gengetopt.1 +++ gengetopt/doc/gengetopt.1 @@ -1,7 +1,7 @@ .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.40.11. .TH GENGETOPT "1" "November 2012" "gengetopt 2.22.6" "User Commands" .SH NAME -gengetopt \- manual page for gengetopt 2.22.6 +gengetopt \- skeleton main.c generator .SH SYNOPSIS .B gengetopt [\fIOPTIONS\fR]... debian/rules0000755000000000000000000000236112142677270010260 0ustar #!/usr/bin/make -f %: dh $@ --with autoreconf SAVERESTORE := \ doc/cmdline1.c \ doc/cmdline1.h \ doc/cmdline1.h.texinfo \ doc/cmdline2.c \ doc/cmdline2.h \ doc/gengetopt.html \ doc/help_output.texinfo \ doc/main1.cc.texinfo \ doc/multiple_example.c.texinfo \ doc/sample1.ggo.texinfo \ doc/sample1.output.texinfo \ doc/samples.stamp \ doc/test_conf_parser.c.texinfo \ doc/test_conf_parser_ov2.c.texinfo \ doc/test_multiple_parsers.c.texinfo \ tests/test_conf_parser_ov2.c \ tests/test_conf_parser_ov3.c \ doc/help_modes.output.texinfo \ doc/sample1_2.output.texinfo \ doc/test_modes_cmd.ggo.texinfo \ tests/test_conf_parser_ov4.c \ tests/test_manual_help_cmd.c \ tests/test_manual_help_cmd.h \ override_dh_auto_clean: dh_auto_clean for f in $(SAVERESTORE) ; do [ ! -e $$f.d-r-orig ] || mv $$f.d-r-orig $$f ; done override_dh_auto_install: dh_auto_install rm -f debian/gengetopt/usr/share/doc/gengetopt/AUTHORS rm -f debian/gengetopt/usr/share/doc/gengetopt/COPYING rm -f debian/gengetopt/usr/share/doc/gengetopt/INSTALL rm -f debian/gengetopt/usr/share/doc/gengetopt/LICENSE rm -f debian/gengetopt/usr/share/doc/gengetopt/THANKS rm -f debian/gengetopt/usr/share/doc/gengetopt/ChangeLog rm -f debian/gengetopt/usr/share/info/dir debian/docs0000644000000000000000000000001412142677270010044 0ustar NEWS THANKS debian/gengetopt.examples0000644000000000000000000000002612142677270012730 0ustar debian/README.example debian/control0000644000000000000000000000132512142677344010604 0ustar Source: gengetopt Section: devel Priority: optional Maintainer: Alessio Treglia Build-Depends: debhelper (>= 9~), dh-autoreconf, flex Standards-Version: 3.9.4 Homepage: http://www.gnu.org/software/gengetopt/ Vcs-Git: git://anonscm.debian.org/collab-maint/gengetopt.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/gengetopt.git Package: gengetopt Architecture: any Depends: ${misc:Depends}, ${shlibs:Depends} Description: skeleton main.c generator gengetopt reads an interface description file, and writes a skeleton main.c file. gengetopt supports: long and short options, 11 types of parameters (including flag, int, double, string, and function call), and a usage message. debian/tests0000644000000000000000000000271212142677270010265 0ustar #!/bin/sh # # This is a simple script that tests gengetopt # # install as: /usr/lib/debian-test/tests/gengetopt # or else as: /usr/lib/debian-test/tests/gengetopt/test-1 # In the latter case, /usr/lib/debian-test/tests/gengetopt/ can contain # other file with test data and/or other scripts named test-2, test-3, etc. # # You can run this script with the command # sh debian/tests # After installation, you can run it with the commands # /usr/lib/debian-test/tests/gengetopt # or # debian-test -v gengetopt # see debian-test(1) . ${DEBIANTEST_LIB:-/usr/lib/debian-test/lib}/functions.sh if [ -f my-data-file ]; then TESTDIR=`pwd`; else TESTDIR=/usr/lib/debian-test/tests/gengetopt; fi ## we need a scratch directory in which to execute TMP=/tmp/gengetopt-test.$$ test -e $TMP && rm -rf $TMP mkdir $TMP cd $TMP trap "rm -rf $TMP" EXIT test1(){ RESULT=0 cp /usr/share/doc/gengetopt/examples/* . gengetopt -isample1.ggo -Fcmdline1 --long-help -u c++ -o main1 main1.cc cmdline1.c if ./main1 --help |grep -q "Another integer option"; then true; else RESULT=1; fi return $RESULT } test2(){ RESULT=0 gengetopt --input=sample2.ggo --func-name=my_cmdline_parser --file-name=cmdline2 --unamed-opts gcc -o main2 main2.c cmdline2.c if ./main2 -h |grep -q "long double option"; then true; else RESULT=1; fi return $RESULT } runtest "C++ test case" test1 runtest "C test case" test2 debian/changelog0000644000000000000000000002271612142677370011061 0ustar gengetopt (2.22.6-2) unstable; urgency=low * Upload to unstable. * Fix VCS URLs. * Bump Standards. -- Alessio Treglia Thu, 09 May 2013 12:48:17 +0200 gengetopt (2.22.6-1) experimental; urgency=low * New upstream release. * Switch from autotools-dev to dh-autoreconf. * Refresh patches. * Bump debhelper requirements to automatically enable hardening. * Update debian/copyright. * Bump Standards. -- Alessio Treglia Thu, 15 Nov 2012 01:31:28 +0000 gengetopt (2.22.5-1) unstable; urgency=low * New upstream release: - correctly wraps and preprocess the specified usage string - handle escaped newline chars in the .ggo file correctly - initialize enum variables with a generated null value (makes the parser compilable in C++) - removed warnings in generated parser when only flags are used * Fix gbp config file. * Bump Standards. * Drop unneeded dependency on dpkg (>= 1.15.4), stable has a newer version. * Refresh patches. -- Alessio Treglia Mon, 26 Sep 2011 10:27:31 +0200 gengetopt (2.22.4-3) unstable; urgency=low * Change my email address. * Bump Standards. * Add gbp config file. * Add .gitignore file. * Switch to debhelper 7 + autotools_dev add-on. * Drop CDBS. * Update debian/docs file. -- Alessio Treglia Thu, 15 Jul 2010 19:23:36 +0200 gengetopt (2.22.4-2) unstable; urgency=low * New maintainer (Closes: #544449). * Set DM-Upload-Allowed to yes. * Update debian/copyright. * Move packaging to collab-maint's git area. -- Alessio Treglia Sun, 25 Apr 2010 11:55:37 +0200 gengetopt (2.22.4-1) unstable; urgency=low * QA upload * New upstream release * debian/control: - Bump debhelper build dependency to 7 - Add Depends on dpkg (>= 1.15.4) | install-info - Update Standards-Version to 3.8.4 (No changes needed) * debian/compat: Bumped to 7 * debian/dirs: Removed * debian/patch/03repack.diff: Removed * debian/gengetopt.doc-base: Added * debian/copyright: Do not mention that the tarball was repackaged * debian/rules: - Remove /usr/share/info/dir and /usr/share/doc/gengetopt/ChangeLog * Switch to 3.0 (quilt) source format - Do not include simple-patchsys.mk in debian/rules * Update 01man.patch to follow DEP3 -- Vincent Legout Mon, 19 Apr 2010 12:18:14 +0800 gengetopt (2.22.2-1) unstable; urgency=low * QA upload, orphaning this package. * New upstream release. * Repackaged upstream tarball, and related to that: + removed texinfo from Build-Depends in debian/control, + mentioned repackaged tarball in debian/copyright, + removed debian/info, + removed debian/patches/02info.diff, + and added debian/patches/03repack.diff. * debian/copyright: Updated. * debian/watch: Updated. -- Bart Martens Wed, 17 Jun 2009 12:40:58 +0200 gengetopt (2.22.1-1) unstable; urgency=low * New upstream release. * debian/copyright: Updated. * debian/patches/02info.diff: Updated. * debian/patches/03gcc43.diff: Removed. -- Bart Martens Wed, 07 May 2008 21:14:14 +0200 gengetopt (2.22-2) unstable; urgency=low * debian/patches/03gcc43.diff: Added. Closes: #441530. -- Bart Martens Sat, 02 Feb 2008 12:32:08 +0100 gengetopt (2.22-1) unstable; urgency=low * New upstream release. -- Bart Martens Tue, 22 Jan 2008 18:29:08 +0100 gengetopt (2.21-1) unstable; urgency=low * New upstream release. -- Bart Martens Mon, 06 Aug 2007 20:35:43 +0200 gengetopt (2.20-1) unstable; urgency=low * New upstream release. * debian/copyright: Updated. * debian/patches/01man.diff: Edited. * debian/patches/02info.diff: Edited. * debian/rules: Added "SAVERESTORE". -- Bart Martens Sun, 15 Jul 2007 09:19:11 +0200 gengetopt (2.19.1-1) unstable; urgency=low * New upstream release. * debian/patches/*: Updated for new upstream release. -- Bart Martens Sat, 24 Mar 2007 20:05:19 +0100 gengetopt (2.18-1) unstable; urgency=low * New upstream release. * debian/control: Replaced flex-old by flex. * debian/control, debian/rules: Switched to cdbs. * debian/control: Depends on texinfo. * debian/patches/01man.diff: Added. * debian/patches/02info.diff: Added. -- Bart Martens Tue, 26 Sep 2006 07:38:43 +0200 gengetopt (2.17-1) unstable; urgency=low * New maintainer. Closes: #266484. * New upstream release. Closes: #287658. * debian/*: Repackaged with dh-make 0.41. * debian/copyright: Updated. * debian/watch: Updated. -- Bart Martens Tue, 8 Aug 2006 23:45:42 +0200 gengetopt (2.10-2) unstable; urgency=low * QA Upload * Change maintainer to QA Group * Recompile for CXX transition * Remove unneccessary build-dependency on libstdc++-dev (Closes: #268595) * Update config.sub/config.guess to fix FTBFS on GNU/k*BSD (Closes: #326523) * Update FSF address in copyright file -- Frank Lichtenheld Fri, 28 Oct 2005 20:52:03 +0200 gengetopt (2.10-1) unstable; urgency=low * New upstream release -- Luca Filipozzi Thu, 12 Jun 2003 20:36:03 -0700 gengetopt (2.9-1) unstable; urgency=low * New upstream release -- Luca Filipozzi Fri, 18 Apr 2003 12:25:11 -0700 gengetopt (2.8.1-1) unstable; urgency=low * New upstream release -- Luca Filipozzi Sat, 5 Apr 2003 19:49:36 -0800 gengetopt (2.8-1) unstable; urgency=low * New upstream release -- Luca Filipozzi Mon, 30 Dec 2002 15:58:58 -0800 gengetopt (2.7.1-1) unstable; urgency=low * New upstream release -- Luca Filipozzi Sat, 3 Aug 2002 10:29:37 -0700 gengetopt (2.7-2) unstable; urgency=low * added builddep on libstdc++-dev * to fix an FTBFS on hppa: (Closes: #152823) - added HAVE_NAMESPACES=1 to config.h.in to fix an FTBFS - removed dependency on my_sstream.h and src/includes/sstream from several files; why upstream ships their own sstream... -- Luca Filipozzi Mon, 15 Jul 2002 04:26:06 -0700 gengetopt (2.7-1) unstable; urgency=low * New upstream release -- Luca Filipozzi Fri, 12 Jul 2002 22:40:10 -0700 gengetopt (2.6-2) unstable; urgency=low * debian/watch: updated to uscan version 2 format -- Luca Filipozzi Sat, 13 Apr 2002 15:32:52 -0700 gengetopt (2.6-1) unstable; urgency=low * New upstream release -- Luca Filipozzi Sat, 23 Mar 2002 19:22:32 -0800 gengetopt (2.5-1) unstable; urgency=low * New upstream release * minor fix to manpage (Closes: Bug#121571) * minor change to src/gm.c to avoid using generating header protection ifdef's that start with an underscore (Closes: Bug#121575) -- Luca Filipozzi Wed, 19 Dec 2001 13:07:22 -0800 gengetopt (2.4-1) unstable; urgency=low * New maintainer * New upstream release * Completely reworked the debian/* files * No longer installs /usr/lib/debian-test/tests/gengetopt -- Luca Filipozzi Wed, 29 Aug 2001 08:06:09 -0700 gengetopt (2.3-1) unstable; urgency=low * New upstream release -- James R. Van Zandt Sat, 12 May 2001 09:52:49 -0400 gengetopt (2.2-4) unstable; urgency=low * debian/watch: support uscan -- James R. Van Zandt Sat, 12 May 2001 09:35:54 -0400 gengetopt (2.2-3) unstable; urgency=low * debian/control: build-depends on flex (Closes:Bug#95958) -- James R. Van Zandt Fri, 11 May 2001 21:22:37 -0400 gengetopt (2.2-2) unstable; urgency=low * debian/control: move build-depends line to source section. Upgrade policy to 3.5.2. * debian/rules: honor DEB_BUILD_OPTIONS. Keep Makefile and several other intermediate files out of .diff file. * debian/tests: support debian-test -- James R. Van Zandt Fri, 27 Apr 2001 21:00:53 -0400 gengetopt (2.2-1) unstable; urgency=low * New upstream release -- James R. Van Zandt Fri, 19 Jan 2001 20:22:48 -0500 gengetopt (2.1-1) unstable; urgency=low * New upstream release -- James R. Van Zandt Tue, 26 Sep 2000 21:25:16 -0400 gengetopt (2.0-1) unstable; urgency=low * New upstream release * Build-Depends on debhelper * copyright: Updated license. Removed reference to old GPL location. * Moved examples to /usr/share/doc/gengetopt/examples * src/gm.c: Add cast, to eliminate error message when generated code is compiled as C++. -- James R. Van Zandt Sat, 2 Sep 2000 13:34:37 -0400 gengetopt (1.1.1-3) unstable; urgency=low * Install /usr/doc/gengetopt symlink. -- James R. Van Zandt Wed, 15 Sep 1999 17:14:55 -0400 gengetopt (1.1.1-2) unstable; urgency=low * Link against glibc2.1 * Update to FHS * Update reference to GPL in copyright file -- James R. Van Zandt Mon, 6 Sep 1999 20:21:08 -0400 gengetopt (1.1.1-1) unstable; urgency=low * New upstream release. License clarified: GPL. -- James R. Van Zandt Tue, 17 Aug 1999 20:21:29 -0400 gengetopt (1.1.0-1) unstable; urgency=low * Initial Release. Includes man page written for Debian. -- James R. Van Zandt Sun, 20 Jun 1999 10:15:03 -0400 Local variables: mode: debian-changelog End: debian/gengetopt.doc-base0000644000000000000000000000045612142677270012576 0ustar Document: gengetopt Title: Manual for gengetopt Author: Lorenzo Bettini Abstract: This manual is for GNU Gengetopt, a tool to write command line option parsers for C programs. Section: Programming Format: HTML Index: /usr/share/doc/gengetopt/index.html Files: /usr/share/doc/gengetopt/gengetopt.html debian/README.Debian0000644000000000000000000000555112142677270011245 0ustar gengetopt for Debian ---------------------- Here is a feature comparison of six command line parser generators. package clig genparse gaa autogen gengetopt wyg [1] [2] [3] [4] [5] [6] runs per project [7] many many many many once many input file file file file file file C language app yes yes yes yes yes yes shell script app no no no yes no no package result parser parser parser parser main.c parser config file input no no yes yes no yes environment input no no no yes no no config file output no no no yes no no command line yes yes yes yes yes yes short options [8] yes yes yes yes yes combined short options no yes yes yes yes yes long options [8] yes yes yes yes yes parameter types 4 5 5 any 11 4 callback functions no yes yes yes yes no multiple parameters yes no no yes no no optional parameters yes no no yes no no default values yes yes yes yes no yes range checks yes yes no no no no option data struct struct struct struct variables struct usage() yes yes yes yes yes yes man page yes no no no no no makefile no no no no no no developer dependencies tcl none none none none bison,flex user dependencies none none none [9] none none [1] clig is the only tool that generates a skeleton man page. It also updates a previously generated man page. [2,3] genparse and gaa have very similar capabilities. genparse supports range checks, and gaa supports option input from a configuration file as well as the command line. NOTE HOWEVER: gaa is not maintained upstream. [4] autogen has many capabilities, but here we concentrate on the portion called AutoOpts. AutoOpts is the most general of these programs, and has the most extensive documentation. It is the only one that supports shell scripts as well as C programs. It also supports input from a configuration file or the environment. [5] gengetopt is the only one that generates a skeleton main.c instead of a separate parsing function. [6] wyg uses flex and bison to generate a configuration file parser, but uses getopt_long to parse the command line options. [7] A program run "once" produces files which the user is expected to edit. If it's run again, the user would lose his edits. A program supporting "many" runs, the user is not expected to edit the result. Thus, to change the interface (to add an option, for example), the user could edit the description file and re-run the parser generator. [8] xlig supports either a short or long name for a given option, but not both, and in either case it is introduced by a single dash. [9] There is a user-visible dependency iff the developer does a dynamic link to the libopts.so library. Developers are free to either link statically or ship libopts.so with their product. A Debian package would need only a dependency on the package supplying libopts (libopts2, at present). . -- James R. Van Zandt , Sun, 20 Jun 1999 10:15:03 -0400 debian/gbp.conf0000644000000000000000000000005712142677270010617 0ustar [DEFAULT] pristine-tar = True sign-tags = True debian/copyright0000644000000000000000000000264712142677270011142 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: GNU Gengetopt Upstream-Contact: Lorenzo Bettini Source: ftp://ftp.gnu.org/gnu/gengetopt/ Files: * Copyright: 1999 Roberto Arturo Tena Sanchez 1984-2009 Free Software Foundation, Inc. 1999-2009, Lorenzo Bettini License: GPL-3+ Files: debian/* Copyright: 2010-2012 Alessio Treglia 2006-2009, Bart Martens 2005, Frank Lichtenheld 2001-2003, Luca Filipozzi 1999-2001, James R. Van Zandt License: GPL-3+ License: GPL-3+ This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program. If not, see . . On Debian systems, the complete text of the GNU General Public License version 3 can be found in `/usr/share/common-licenses/GPL-3'. debian/source/0000755000000000000000000000000012142677270010476 5ustar debian/source/format0000644000000000000000000000001412142677270011704 0ustar 3.0 (quilt) debian/watch0000644000000000000000000000055512142677270010234 0ustar version=3 opts="uversionmangle=s/(\d)[\-_]?(rc\d+|pre-rc\d+|pre\d+a?)$/$1~$2/;s/[\-\.](source|Source|src|orig|unix)$//;s/-(bin|osx)$/~$1/;s/^v(\d)/$1/;" \ http://ftp.gnu.org/gnu/gengetopt/ .*gengetopt-(v?[\d\.]+(?:rc|rc\d+|pre-rc\d+|-unix|-source|-Source|-src|\.src|\.orig|[a-z]|b\d+|beta\d+-src|beta\d+)?)\.(?:tar\.gz|tgz|tar\.bz2|zip|pm\.gz|jar|shar\.gz|shar\.Z) debian/README.example0000644000000000000000000000050412142677270011507 0ustar #!/bin/sh -v # commands to try the C++ example: gengetopt -isample1.ggo -Fcmdline1 --long-help -u c++ -o main1 main1.cc cmdline1.c ./main1 --help # commands to try the C example: gengetopt --input=sample2.ggo --func-name=my_cmdline_parser --file-name=cmdline2 --unamed-opts gcc -o main2 main2.c cmdline2.c ./main2 -h