debian/0000775000000000000000000000000012277317120007172 5ustar debian/genparse.files0000664000000000000000000000002111752660374012024 0ustar usr/bin/genparse debian/copyright0000664000000000000000000000351211752660374011137 0ustar Format: http://anonscm.debian.org/viewvc/dep/web/deps/dep5.mdwn?revision=174 X-Format: http://dep.debian.net/deps/dep5 Upstream-Name: genparse Upstream-Contact: Michael Geng , Source: http://freshmeat.net/projects/genparse X-Upstream-Vcs: https://sourceforge.net/projects/genparse/develop X-Upstream-Bugs: https://sourceforge.net/tracker/?group_id=4341&atid=104341 X-Source-Sourceforge: http://sourceforge.net/projects/genparse Files: * Copyright: 2006-2010 Michael Geng , 1999-2000 Mike Borella , License: GPL-2+ Files: debian/* Copyright: 2010-2012 Jari Aalto 2008 Luk Claes 2005 Lars Wirzenius 2005 Víctor Pérez Pereira 2004 Christoph Berg 2004 Andrew Pollock 2001-2003 Luca Filipozzi 1999-2001 James R. Van Zandt License: GPL-2+ License: GPL-2+ This package 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 2 of the License, or (at your option) any later version. . This package 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 can be found in "/usr/share/common-licenses/GPL-2". debian/README.Debian0000664000000000000000000000706411752660374011253 0ustar genparse 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). . (libopts2, at present). -- Jari Aalto , Thu, 11 Mar 2010 02:01:48 +0200 debian/README.example0000664000000000000000000000040111752660374011510 0ustar #!/bin/sh -e # read the description file and create mycopy3_clp.c and mycopy3_clp.h genparse -o mycopy3_clp mycopy3.gp # compile the results gcc -I. -g -O2 -c mycopy3_clp.c gcc -I. -g -O2 -c mycopy3.c gcc -g -O2 -o mycopy3 mycopy3_clp.o mycopy3.o -ll debian/clean0000664000000000000000000000002411752660374010204 0ustar config.log lex.yy.c debian/changelog0000664000000000000000000002022412277317115011050 0ustar genparse (0.9.1-1ubuntu1) trusty; urgency=low * Use autotools-dev for arm64. -- Daniel T Chen Thu, 13 Feb 2014 23:40:32 -0500 genparse (0.9.1-1) unstable; urgency=low * New upstream release (FTBFS; Closes: #666372). * debian/compat - Update to 9 * debian/control - (Build-Depends): update to debhelper 9. - (Standards-Version): Update to 3.9.3.1. * debian/copyright - Update to format 1.0. * debian/rules - Use hardened CFLAGS. http://wiki.debian.org/ReleaseGoals/SecurityHardeningBuildFlags -- Jari Aalto Thu, 10 May 2012 09:32:14 +0300 genparse (0.8.7-4) unstable; urgency=low * debian/control - (Build-Depends): Add autoconf and automake. Change openjdk-6-jdk to default-jdk. Patch thanks to Petr Salinger (Bug#590014). * debian/copyright - (Format): Update URL (lintian). * debian/debian-save-restore.mk - Update. Use PACKAGE suffix for saved files. * debian/patches - (10): Rename from 40. - (12): New. Correct include option in Makefile.am which causes autoreconf(1) to exit with error. * debian/rules - (FILE_LIST_PRESERVE): Add autoreconf modified files. - (override_dh_auto_configure): Run autoreconf(1) to make patch by Petr Salinger effective (Closes: #590014). Copy fresh config.* files. -- Jari Aalto Sun, 02 Oct 2011 09:36:06 +0300 genparse (0.8.7-3) unstable; urgency=low * debian/control - (Build-Depends): Change texlive to doxygen-latex (Closes: #616217). - (Standards-Version): Update to 3.9.2. * debian/copyright - Update to DEP5. -- Jari Aalto Thu, 21 Apr 2011 14:44:33 +0300 genparse (0.8.7-2) unstable; urgency=low * debian/compat - Update to 8. * debian/control - (Build-Depends): update to debhelper 8. - (Standards-Version): 3.9.1. * debian/patches - (40): New. Disable HAVE_GCJ in configure.ac. This changes openjdk-6-jdk into default-jdk, Patch thanks to Petr Salinger (bd-uninstallable on hppa, kfreebsd-*; serious; Closes: #590014). -- Jari Aalto Tue, 12 Oct 2010 19:13:01 +0300 genparse (0.8.7-1) unstable; urgency=low * New upstream release. * debian/clean - New file. * debian/rules - (FILE_LIST_PRESERVE): update to latest upstream. - (override_dh_clean): new target. -- Jari Aalto Sat, 20 Mar 2010 11:19:52 +0200 genparse (0.8.6-1) unstable; urgency=low * New upstream release. * debian/debian-save-restore.mk - Update suffix handling. * debian/rules - (FILE_LIST_PRESERVE): update to current upstream. - (.PHONY): add binary. -- Jari Aalto Thu, 11 Mar 2010 01:57:50 +0200 genparse (0.8.5-1) unstable; urgency=low * New maintainer (ITA; Closes: #505992). * New upstream release (Closes: #559947). * Move to packaging format "3.0 (quilt)" * Package was removed from Debian testing 2009-12-10 http://packages.qa.debian.org/g/genparse/news/20091210T163923Z.html * debian/changelog - Remove obsolete Emacs variables from the end. * debian/control - (Build-Depends): update to 7. change flex-old to flex. Add doxygen, libcppunit-dev, libcunit1-dev, junit etc. to satisfy new upstream release. - (Depends): add ${misc:Depends} for debhelper. Add install-info dependency. - (Standards-Version): update to 3.8.4. - (Vcs-*): add new fields. * debian/copyright - Update layout and add new author Michael Geng. * debian/compat - New file * debian/genparse.examples - Remove test/mycopy3.c, test/mycopy3.gp (no longer in sources). * debian/rules - remove DH_COMPAT * debian/source.lintian-overrides - Remove, not needed for current upstream. * debian/source/format - New file. * debian/watch - Use SF redirector (Closes: #450054). -- Jari Aalto Fri, 26 Feb 2010 09:06:44 +0200 genparse (0.5.2-11.1) unstable; urgency=medium * Non-maintainer upload. * Fix FTBFS with GCC 4.3 (Closes: #417193). -- Luk Claes Sun, 09 Mar 2008 13:34:12 +0000 genparse (0.5.2-11) unstable; urgency=low * Update of Debian Policy. -- Víctor Pérez Pereira Tue, 27 Dec 2005 00:05:04 -0400 genparse (0.5.2-10.1) unstable; urgency=low * Non-maintainer upload. * Added texinfo as a build dependency. Closes: #302246. -- Lars Wirzenius Fri, 22 Apr 2005 12:19:00 +0300 genparse (0.5.2-10) unstable; urgency=low * New maintainer (closes: #266468). -- Víctor Pérez Pereira Sun, 20 Mar 2005 18:25:28 -0400 genparse (0.5.2-9) unstable; urgency=low * QA upload. * Rebuild to fix info file (Closes: #280099). * Update watch file. * Debhelper 4. * Remove autotools from Build-Depends; update to current config.{guess,sub}. * Fix clean rule not to remove stuff contained in orig.tgz. * Bump Standards-Version. -- Christoph Berg Sat, 27 Nov 2004 16:09:53 +0100 genparse (0.5.2-8) unstable; urgency=low * QA Group upload orphaning this package -- Andrew Pollock Sat, 6 Nov 2004 11:00:00 +1100 genparse (0.5.2-7) unstable; urgency=low * fixed an FTBFS bug due to redifinition of float_t (Closes: Bug#189717) -- Luca Filipozzi Sat, 14 Jun 2003 11:16:44 -0700 genparse (0.5.2-6) unstable; urgency=low * debian/watch: upgraded to version 2 and fixed for sf.net -- Luca Filipozzi Sun, 2 Jun 2002 20:36:12 -0700 genparse (0.5.2-5) unstable; urgency=low * updated source to use namespaces (Closes:Bug#104691) -- Luca Filipozzi Fri, 26 Oct 2001 23:15:20 -0700 genparse (0.5.2-4) unstable; urgency=low * New maintainer * Completely reworked of debian/* files to use debhelper v3 -- Luca Filipozzi Wed, 29 Aug 2001 10:32:50 -0700 genparse (0.5.2-3) unstable; urgency=low * debian/control: build-depends on flex and bison (Closes:Bug#95960) -- James R. Van Zandt Fri, 11 May 2001 21:26:18 -0400 genparse (0.5.2-2) unstable; urgency=low * debian/control: move build-depends line to source section. policy version 3.2.1 * debian/rules: honor DEB_BUILD_OPTIONS. -- James R. Van Zandt Sun, 22 Apr 2001 21:21:29 -0400 genparse (0.5.2-1) unstable; urgency=low * New upstream release * sources are now at genparse.sourceforge.net -- James R. Van Zandt Wed, 17 Jan 2001 20:47:59 -0500 genparse (0.4-3) unstable; urgency=low * parse_cl.cc: getopt_long returns int, not char. Necessary for arm and powerpc. -- James R. Van Zandt Mon, 15 Jan 2001 11:06:57 -0500 genparse (0.4-2) unstable; urgency=low * build-depends on debhelper * man page: description file needs spaces around "/" (thanks to Daniel Calvelo ) * Add simple test for debian-test. -- James R. Van Zandt Mon, 9 Oct 2000 21:47:28 -0400 genparse (0.4-1) unstable; urgency=low * New upstream release * genparse is now autoconfiscated - rework rules to match. * old demo program is gone. Install mycopy3 as the example. * Install the info file. -- James R. Van Zandt Wed, 5 Jan 2000 20:23:27 -0500 genparse (0.3-4) unstable; urgency=low * Example has moved from /usr/doc to /usr/share/doc. Update manpage pointer. (closes:bug#52942) -- James R. Van Zandt Fri, 17 Dec 1999 19:30:25 -0500 genparse (0.3-3) unstable; urgency=low * Install /usr/doc/genparse symlink. -- James R. Van Zandt Wed, 15 Sep 1999 17:12:29 -0400 genparse (0.3-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:28:31 -0400 genparse (0.3-1) unstable; urgency=low * Initial Release. * Wrote man page, based on existing README file. -- James R. Van Zandt Sun, 20 Jun 1999 18:24:18 -0400 debian/genparse.examples0000664000000000000000000000002611752660374012545 0ustar debian/README.example debian/genparse.docs0000664000000000000000000000000711752660374011656 0ustar README debian/watch0000664000000000000000000000007511752660374010236 0ustar version=3 http://sf.net/genparse/genparse-([\d\.]+)\.tar\.gz debian/control0000664000000000000000000000177012277317031010603 0ustar Source: genparse Section: devel Priority: optional Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Jari Aalto Build-Depends: debhelper (>= 9), automake, autoconf, bison, flex, texinfo, doxygen, libcunit1-dev, junit, libcppunit-dev, default-jdk, install-info, texi2html, man2html, doxygen-latex, autotools-dev Standards-Version: 3.9.3.1 Vcs-Browser: http://git.debian.org/?p=collab-maint/genparse.git Vcs-Git: git://git.debian.org/git/collab-maint/genparse.git Homepage: http://genparse.sourceforge.net Package: genparse Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends}, dpkg (>= 1.15.4) | install-info Description: command line parser generator From simple and concise specification file, you can define the command line parameters and switches that you would like to be able to pass to your program. Genparse creates the C code of the parser for you, which you can then compile as a separate file and link with your program. debian/source/0000775000000000000000000000000011752660374010503 5ustar debian/source/format0000664000000000000000000000001411752660374011711 0ustar 3.0 (quilt) debian/compat0000664000000000000000000000000211752660374010401 0ustar 9 debian/debian-save-restore.mk0000664000000000000000000000464211752660374013401 0ustar # debian-save-restore.mk -- Save and restore original files # # Copyright # # Copyright (C) 2008-2012 Jari Aalto # # License # # 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 2 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 . # # Description # # This is GNU makefile part, that defines common variables, # targets and macros to be used from debian/rules. # # Usage (format 3.0) # # PACKAGE = foo # FILE_LIST_PRESERVE = # # override_dh_clean: # $(file-state-save) # dh_clean # $(file-state-restore-copy) # # Alternative usage, in case more file updates happens during configure etc. # # override_dh_auto_configure: # $(file-state-save) # # # override_dh_install: # dh_install # $(config-restore) # $(file-state-restore) # # binary-arch: # $(file-state-restore) # ... ifdef PACKAGE prefix := $(PACKAGE). endif define file-state-save # save files suffix=.original; \ for file in $(FILE_LIST_PRESERVE); \ do \ backup=/tmp/$(prefix)$$(echo $$file | sed 's,/,%,g')$$suffix; \ cp --archive --verbose "$$file" "$$backup"; \ done endef define file-state-restore-copy # restore files suffix=.original; \ for file in $(FILE_LIST_PRESERVE); \ do \ backup=/tmp/$(prefix)$$(echo $$file | sed 's,/,%,g')$$suffix; \ if [ -f "$$backup" ]; then \ dir=$$(dirname "$$file"); \ if [ "$$dir" != "." ]; then \ mkdir -p "$$dir"; \ fi; \ cp --archive --verbose "$$backup" "$$file"; \ fi; \ done endef define file-state-restore # restore files suffix=.original; \ for file in $(FILE_LIST_PRESERVE); \ do \ backup=/tmp/$(prefix)$$(echo $$file | sed 's,/,%,g')$$suffix; \ if [ -f "$$backup" ]; then \ dir=$$(dirname "$$file"); \ if [ "$$dir" != "." ]; then \ mkdir -p "$$dir"; \ fi; \ cp --archive --verbose "$$backup" "$$file"; \ rm "$$backup"; \ fi; \ done endef # End of file debian/rules0000775000000000000000000000277512277317075010276 0ustar #!/usr/bin/make -f PACKAGE = genparse export DEB_BUILD_MAINT_OPTIONS = hardening=+all export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed include debian/debian-save-restore.mk # Changed by the build process: files deleted and autoreconf FILE_LIST_PRESERVE = \ config.guess \ config.sub \ doc/stamp-vti \ doc/version.texi \ examples/echo_clp.c \ examples/echo_clp.h \ examples/ls_clp.c \ examples/ls_clp.h \ examples/mv_clp.c \ examples/mv_clp.h \ examples/mycopy3_clp.c \ examples/mycopy3_clp.h \ examples/mycopy4_clp.cc \ examples/mycopy4_clp.h \ examples/mycopy4_clp_cb.cc \ examples/ping_clp.c \ examples/ping_clp.h \ examples/rm_clp.c \ examples/rm_clp.h \ examples/tail_clp.c \ examples/tail_clp.h \ examples/uname_clp.c \ examples/uname_clp.h \ examples/wc_clp.c \ examples/wc_clp.h \ tests/ccheck/default_clp.c \ tests/ccheck/double_clp.c \ tests/ccheck/intmax_clp.c \ tests/ccheck/long_clp.c \ tests/ccheck/longmembers_clp.c \ tests/ccheck/uintmax_clp.c \ tests/ccheck/ulong_clp.c \ tests/cppcheck/default_clp.cc \ tests/cppcheck/longmembers_clp.cc RM = \ tests/misc/quotearg.c \ tests/misc/quotearg.h override_dh_auto_clean: $(file-state-save) dh_auto_clean $(file-state-restore-copy) override_dh_clean: dh_clean rm -f $(RM) override_dh_install: dh_install $(file-state-restore) # remove central info "dir", handled by install-info rm -f debian/$(PACKAGE)/usr/share/info/dir* %: dh $@ --with autotools-dev # End of file