--- bison++-1.21.11.orig/debian/README.Debian +++ bison++-1.21.11/debian/README.Debian @@ -0,0 +1,10 @@ +Bison++ is almost identical with bison, but it produces cleaner C++ code. I.e +the produced parser consisting of classes and the communication between the +parser and the scanner is performed without global variables. + +To learn bison++ I suggest you first learn the bison (bison.ps or info bison). +BTW bison.ps is not for version 1.19 of bison, but almost everything is the +same so it doesn't matter much. The man pages (man bison++) explains the bison++ extensions. + +One difference that needs extra attention is the communication scanner->parser. +An example of how this is performed is given in the Example directory. --- bison++-1.21.11.orig/debian/bison++-doc.info +++ bison++-1.21.11/debian/bison++-doc.info @@ -0,0 +1,6 @@ +bison.info +bison.info-1 +bison.info-2 +bison.info-3 +bison.info-4 +bison.info-5 --- bison++-1.21.11.orig/debian/changelog +++ bison++-1.21.11/debian/changelog @@ -0,0 +1,143 @@ +bison++ (1.21.11-3.1) unstable; urgency=medium + + * Non-maintainer upload. + * Get rid of install-info calls in maintainer scripts. (Closes: #708488) + + -- Andreas Beckmann Sat, 18 Jan 2014 19:41:03 +0100 + +bison++ (1.21.11-3) unstable; urgency=low + + * Acknowledge NMU. Thanks! + * Updates: + - use new C++ ABI. (Closes: #326448) + - Update standard-version to 3.6.2.1 (no changes required). + - Update the FSF address to the current one. + * Updated control file + - conflict with bison-doc (Closes: #341349) + - Not provide "bison" anymore -- this is obsolete (Closes: #360557) + - Fix inconsistent command line arg handling (Closes: #242027) + + * Fix incorrect removal of yacc alternative (Closes: #327146) + + -- Jose Luis Tallon Thu, 11 May 2006 1:28:09 +0200 + +bison++ (1.21.11-2.1) unstable; urgency=low + + * Delayed non-maintainer upload to use new C++ ABI. (Closes: #326448) + * Update standard-version to 3.6.2.1 (no changes required). + * Update the FSF address to the current one. + + -- Petter Reinholdtsen Sat, 3 Sep 2005 13:25:48 +0200 + +bison++ (1.21.11-2) unstable; urgency=low + + * New maintainer. Adoption granted by Magnus Ekdahl (Closes: #228943, #228950) + * Upload sponsored by Roberto Lumbreras + * Minor changes, bump 'Standards-Version' to current version. + + -- Jose Luis Tallon Sun, 25 Jan 2004 13:18:33 +0100 + +bison++ (1.21.11-1) unstable; urgency=low + + * Fixed g++3.3 typo, should be g++ (closes:Bug#199754) + * Changed flex recomendation to flex-old (closes:Bug#195893) + * changed the package type to non-native (closes:Bug#199753) + + -- Magnus Ekdahl Tue, 22 Jul 2003 14:55:11 +0200 + +bison++ (1.21.10-1) unstable; urgency=low + + * g++ 3.3 transition (closes: Bug#194863) + * Spell-check + * FreeBSD compability patch from Victor Fajardo + * changed mkstemp -> tmpfile (closes: Bug#194205) + + -- Magnus Ekdahl Tue, 27 May 2003 20:14:38 +0200 + +bison++ (1.21.9-3) unstable; urgency=low + + * removed usr-doc-link + * Capitalized first letter in package description + * Fixed typo in Example/test.txt + + -- Magnus Ekdahl Wed, 13 Nov 2002 20:48:32 +0100 + +bison++ (1.21.9-2) unstable; urgency=low + + * fixed C++ incompability problem on hppa (closes: Bug#154496) + + -- Magnus Ekdahl Sat, 27 Jul 2002 11:02:18 -0600 + +bison++ (1.21.9-1) unstable; urgency=low + + * Added bison 1.24 GPL exception after request from Richard Kreuter, and legal advice from R.Stallman. + * cleaned maintainer scripts + * fixed namespace conflicts with tetex-bin (closes: Bug#153093) + * fixed bug with -p option + * ported project to C++ + * Made it possible to create bison compatible output in C++ + * fixed problem with YY_@_ERROR_VERBOSE in bison.cc + + -- Magnus Ekdahl Fri, 26 Jul 2002 12:19:39 +0200 + +bison++ (1.21.8-3) unstable; urgency=low + + * Added example, more docs and README info Closes: #123757 + + -- Magnus Ekdahl Sun, 14 Apr 2002 21:12:30 +0200 + +bison++ (1.21.8-2.1) unstable; urgency=low + + * NMU + * Just one change: Depends: libc6 -> Depends: ${shilbs:Depends} + * It should now install on the alpha just fine (Closes: #142472) + + -- Moshe Zadka Fri, 12 Apr 2002 11:25:26 +0300 + +bison++ (1.21.8-2) unstable; urgency=low + + * added Alain to authors closes: #133606 + * added missing info files + * added missing man link + + -- Magnus Ekdahl Sun, 17 Feb 2002 19:12:40 +0100 + +bison++ (1.21.8-1) unstable; urgency=low + + * updated to upstream version 1.21.8 + * added yacc compability closes: #132665 + + -- Magnus Ekdahl Fri, 8 Feb 2002 09:25:06 +0100 + +bison++ (1.21.5-4) unstable; urgency=low + + * removed irrelevant/meaningless documentation closes: #128587 + + -- Magnus Ekdahl Fri, 11 Jan 2002 00:17:31 +0100 + +bison++ (1.21.5-3) unstable; urgency=low + + * fixed spelling closes: #124455 + * discussed bug #115234 with user and concluded that it was misplaced + closes: #115234 + + -- Magnus Ekdahl Sat, 5 Jan 2002 11:42:58 +0100 + +bison++ (1.21.5-2) unstable; urgency=low + + * fixed the install info scripts (closes: #114838, #115234, #123662, #123916) + * updated /usr/doc changes according to recomendation of the technical committee + -- Magnus Ekdahl Wed, 10 Oct 2001 13:42:38 +0200 + +bison++ (1.21.5-1) unstable; urgency=low + + * Initial release. + * fixed a bison link to bison++ in order for bison++ to provide full and transparent bison functionality. + * converted to makefiles to autoconf/automake + * removed unused files alloc.c vmsgetargs.c vmshlp.mar + * fixed race condition in files.c + -- Magnus Ekdahl Thu, 5 Jul 2001 13:06:25 +0200 + +Local variables: +mode: debian-changelog +End: --- bison++-1.21.11.orig/debian/control +++ bison++-1.21.11/debian/control @@ -0,0 +1,20 @@ +Source: bison++ +Section: devel +Priority: optional +Maintainer: Jose Luis Tallon +Standards-Version: 3.6.2.1 +Build-Depends: debhelper (>= 4.1) + +Package: bison++ +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Conflicts: bison, bison-doc +Recommends: flex-old, c-compiler +Description: Generate a parser in c or c++ from BNF notation + Based on bison version 1.19. Compatible with bison but with C++ support. + Bison is a general-purpose parser generator that converts a grammar + description for an LALR (BNF-like) context free grammar into a C/C++ program + to parse that grammar. Once you are proficient with bison++ you can generate + a wide range of language parsers, from those used in simple desk calculators + to complex programming languages. + --- bison++-1.21.11.orig/debian/copyright +++ bison++-1.21.11/debian/copyright @@ -0,0 +1,22 @@ +This package was debianized by magnus@debian.org on +Thu, 5 Jul 2001 13:06:25 +0200. + +It was downloaded from ftp://ftp.iecc.com/pub/file/bison++flex++/ + +Upstream Authors: Alain Coetmeur, Magnus Ekdahl + +Bison++ 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, or (at your option) any later +version. + +Bison++ 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 with +your Debian GNU/Linux system, in /usr/share/common-licenses/GPL, or with +the Debian GNU/Linux bison++ source package as the file COPYING. If not, +write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, +Boston, MA 02110-1301 USA --- bison++-1.21.11.orig/debian/patches/getargs.patch +++ bison++-1.21.11/debian/patches/getargs.patch @@ -0,0 +1,12 @@ +diff -ru bison++-1.21.11.orig/getargs.cc bison++-1.21.11/getargs.cc +--- bison++-1.21.11.orig/getargs.cc 2003-07-22 14:55:24.000000000 +0200 ++++ bison++-1.21.11/getargs.cc 2004-04-04 14:10:23.000000000 +0200 +@@ -42,7 +42,7 @@ + {"defines", 0, &definesflag, 1}, + {"file-prefix", 1, 0, 'b'}, + {"fixed-output-files", 0, &fixed_outfiles, 1}, +- {"name-prefix", 1, 0, 'a'}, ++ {"name-prefix", 1, 0, 'p'}, + {"no-lines", 0, &nolinesflag, 1}, + {"output-file", 1, 0, 'o'}, + {"output", 1, 0, 'o'}, --- bison++-1.21.11.orig/debian/postinst +++ bison++-1.21.11/debian/postinst @@ -0,0 +1,6 @@ +#!/bin/sh +set -e 0 + +update-alternatives --install /usr/bin/yacc yacc /usr/bin/bison++.yacc 100 + +#DEBHELPER# --- bison++-1.21.11.orig/debian/prerm +++ bison++-1.21.11/debian/prerm @@ -0,0 +1,10 @@ +#!/bin/sh +set -e + +case "$1" in + remove|purge) + update-alternatives --remove yacc /usr/bin/bison++.yacc + ;; +esac + +#DEBHELPER# --- bison++-1.21.11.orig/debian/rules +++ bison++-1.21.11/debian/rules @@ -0,0 +1,89 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# This is the debhelper compatability version to use. +export DH_COMPAT=4 + +configure: configure-stamp +configure-stamp: + dh_testdir + # Add here commands to configure the package. + chmod a+x bison++.yacc + chmod a+x mdate-sh + ./configure --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info + + touch configure-stamp + +build: configure-stamp build-stamp +build-stamp: + dh_testdir + + # Add here commands to compile the package. + $(MAKE) + #/usr/bin/docbook-to-man debian/bison++.sgml > bison++.1 + + touch build-stamp + +clean: + dh_testdir + dh_testroot + $(RM) build-stamp configure-stamp + # Add here commands to clean up after the build process. + -$(MAKE) distclean + $(RM) config.log config.status + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + #dh_installdirs + + # Add here commands to install the package into debian/bison++. + $(MAKE) install prefix=$(CURDIR)/debian/bison++/usr + $(RM) $(CURDIR)/debian/bison++/usr/share/info/dir + mkdir $(CURDIR)/debian/bison++/usr/share/doc + mkdir $(CURDIR)/debian/bison++/usr/share/doc/bison++ + cp -r Example $(CURDIR)/debian/bison++/usr/share/doc/bison++/ + cp -r bison.ps.gz $(CURDIR)/debian/bison++/usr/share/doc/bison++/ + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot +# dh_installdebconf + dh_installdocs + dh_installexamples + dh_installmenu +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime +# dh_installinit + dh_installcron + dh_installman + dh_installinfo +# dh_undocumented + dh_installchangelogs ChangeLog + dh_link + dh_strip + dh_compress -X.h + dh_fixperms +# dh_makeshlibs + dh_installdeb +# dh_perl + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure --- bison++-1.21.11.orig/getargs.cc +++ bison++-1.21.11/getargs.cc @@ -42,7 +42,7 @@ {"defines", 0, &definesflag, 1}, {"file-prefix", 1, 0, 'b'}, {"fixed-output-files", 0, &fixed_outfiles, 1}, - {"name-prefix", 1, 0, 'a'}, + {"name-prefix", 1, 0, 'p'}, {"no-lines", 0, &nolinesflag, 1}, {"output-file", 1, 0, 'o'}, {"output", 1, 0, 'o'},