--- coco-cpp-20120102.orig/debian/rules
+++ coco-cpp-20120102/debian/rules
@@ -0,0 +1,100 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Sample debian/rules that uses debhelper.
+# This file was originally written by Joey Hess and Craig Small.
+# As a special exception, when this file is copied by dh-make into a
+# dh-make output file, you may use that output file without restriction.
+# This special exception was added by Craig Small in version 0.37 of dh-make.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+
+
+CFLAGS = -Wall -g
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+ CFLAGS += -O0
+else
+ CFLAGS += -O2
+endif
+
+configure: configure-stamp
+configure-stamp:
+ dh_testdir
+ # Add here commands to configure the package.
+ touch configure-stamp
+
+build: build-arch build-indep
+
+build-arch: build-stamp
+
+build-indep: build-stamp
+
+build-stamp: configure-stamp
+ dh_testdir
+
+ # Add here commands to compile the package.
+ $(MAKE)
+ #docbook-to-man debian/coco-cpp.sgml > coco-cpp.1
+
+ touch $@
+
+clean:
+ dh_testdir
+ dh_testroot
+ rm -f build-stamp configure-stamp
+
+ # Add here commands to clean up after the build process.
+ $(MAKE) clean
+
+ dh_clean
+
+install: build
+ dh_testdir
+ dh_testroot
+ dh_prep
+ dh_installdirs
+
+ # Add here commands to install the package into debian/coco-cpp.
+ $(MAKE) install DESTDIR=$(CURDIR)/debian/coco-cpp
+
+
+# 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_installchangelogs
+ dh_installdocs
+ dh_installexamples
+# dh_install
+# dh_installmenu
+# dh_installdebconf
+# dh_installlogrotate
+# dh_installemacsen
+# dh_installpam
+# dh_installmime
+# dh_python
+# dh_installinit
+# dh_installcron
+# dh_installinfo
+ dh_installman debian/cococpp.1
+ dh_link
+ dh_strip
+ dh_compress
+ dh_fixperms
+# dh_perl
+# dh_makeshlibs
+ dh_installdeb
+ dh_shlibdeps
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install configure
+
--- coco-cpp-20120102.orig/debian/changelog
+++ coco-cpp-20120102/debian/changelog
@@ -0,0 +1,157 @@
+coco-cpp (20120102-1) unstable; urgency=low
+
+ * Now upstream release.
+ * Support for "::" as a namespace separator on the command line.
+ * Better readable parser, to support debugging.
+ * Generate trace.txt into the output folder, if specified.
+ * Minor bugfixes.
+
+ -- Markus Loeberbauer <Loeberbauer@ssw.jku.at> Sat, 21 Jan 2012 19:03:50 +0100
+
+coco-cpp (20110419-3) unstable; urgency=low
+
+ * fixed startup shell script
+
+ -- Markus Loeberbauer <Loeberbauer@ssw.jku.at> Mon, 07 Nov 2011 11:12:02 +0100
+
+coco-cpp (20110419-2) unstable; urgency=low
+
+ * Change: Suppress switch optimization if an alternative contains
+ LL(1) warnings; and generate an if-else-if cascade instead.
+ * Minor change: Code cleanup.
+
+ -- Markus Loeberbauer <Loeberbauer@ssw.jku.at> Thu, 30 Jun 2011 07:35:43 +0200
+
+coco-cpp (20110419-1) unstable; urgency=low
+
+ * New upstream release
+ * Frame files provided as command line argument take now precedence
+ over frame files in the source directory of the attributed grammar.
+ * The namespace can be set as a directive in the attributed
+ grammar: $namespace=NamespaceName
+ if the namespace is set in the attributed grammar and on the command
+ line, the command line argument takes precedence.
+ * New option checkEOF: With the option checkEOF the user can specify
+ whether the generated parser should check if the entire input has been
+ consumed after parsing, i.e., if the token after the start symbol of
+ the grammar is an end-of-file token. The user can enable or disable
+ this check by the following directive in the attributed grammar:
+ $checkEOF=true // enable the end of file check (default)
+ $checkEOF=false // disable the end of file check
+ * Support for UTF-8 input: The token stores the character position
+ in Token.charPos.
+ * Support for copyright sections in the generated files. If a
+ file named Copyright.frame is provided, it will be included at
+ the top of the generated scanner and parser.
+ * Cleanup, removed the marker $$$ from the end of the frame files.
+ * More robust scanner generation.
+ * More robust UTF-8 handling in ParserGen.CopySourcePart and
+ Scanner.GetString.
+ * Minor change: Code cleanup.
+
+ -- Markus Loeberbauer <Loeberbauer@ssw.jku.at> Tue, 19 Apr 2011 14:24:43 +0200
+
+coco-cpp (20090327-1) unstable; urgency=low
+
+ * New upstream release
+ * Support for pragmas which are part of terminal classes (thanks
+ to Serge Voloshenyuk)
+ * Scanner.frame, we assume now that every unknown compiler supports
+ swprintf (thanks to John David Duncan)
+ * #line directives for the parser, command line option -lines (thanks
+ to Andrey Maykov)
+ * Minor change: Code cleanup.
+
+ -- Markus Loeberbauer <Loeberbauer@ssw.jku.at> Fri, 27 Mar 2009 12:48:11 +0100
+
+coco-cpp (20090105-1) unstable; urgency=low
+ * New upstream release
+ * Bugfix: Robust namespace generation, for nested namespaces
+ (thanks to Seth Heeren).
+ * Minor change: Added parenthesis around && expressions to satisfy
+ paranoid c++ compilers (thanks to Andrey Maykov).
+ * Minor change: Code cleanup.
+
+ -- Markus Loeberbauer <Loeberbauer@ssw.jku.at> Mon, 05 Jan 2009 14:04:00 +0100
+
+coco-cpp (20081106-1) unstable; urgency=low
+
+ * New upstram release
+ * Minor change: Code cleanup.
+ * Minor change: More robust Scanner, never assign Buffer.EOF to a char
+ (which results in an overflow, should do no harm).
+
+ -- Markus Loeberbauer <Loeberbauer@ssw.jku.at> Mon, 10 Nov 2008 11:15:00 +0100
+
+coco-cpp (20081001-2) unstable; urgency=low
+
+ * Bugfix in package: make clean failed when the build directory was clean.
+ (Closes: #501048)
+ (Closes: #501082)
+
+ -- Markus Loeberbauer <Loeberbauer@ssw.jku.at> Sat, 04 Oct 2008 09:50:00 +0100
+
+coco-cpp (20081001-1) unstable; urgency=low
+
+ * New upstream release
+ * Bugfix: bug in the construction of the scanner automaton fixed.
+ * Minor change: More robust Peek method is Scanner.
+ * Minor change: Allow underscores (_) in identifiers.
+
+ -- Markus Loeberbauer <Loeberbauer@ssw.jku.at> Tue, 23 Sep 2008 22:15:00 +0100
+
+coco-cpp (20070906-3) unstable; urgency=low
+
+ * Minor change: Use only one variable 'i' in Scanner::Init(), support for
+ old C++ compilers.
+ * Minor change: Generate token codes as enumeration values instead of
+ fields, simplifies the code.
+
+ -- Markus Loeberbauer <Loeberbauer@ssw.jku.at> Mon, 28 Jan 2008 10:49:00 +0100
+
+coco-cpp (20070906-2) unstable; urgency=low
+
+ * Better unicode support, Buffer::GetString(int beg, int end) returns now wide chars.
+
+ -- Markus Loeberbauer <Loeberbauer@ssw.jku.at> Mon, 23 Oct 2007 22:58:00 +0100
+
+coco-cpp (20070906-1) unstable; urgency=medium
+
+ * New upstream release
+ * Bugfix: Buffer was defined as array of char which lead to troubles because
+ of the signed nature of the type char. Fix: we use now unsigned char for
+ the buffer.
+ * Feature: Possibility to declare nested namespaces with the "-namespace"
+ option. Just separate namespace names single colons, e.g.: Coco -namespace
+ A:B Sample.atg
+ * Update to version "Sep 6, 2007":
+ Enhanced support for input streams: Previously we did support files via file
+ names and file streams via input streams, but not non seek-able streams
+ (e.g. network). Now we support both stream types. Please note since our
+ memory buffer keeps the entire history of a stream, the maximum supported
+ stream size is limited by the available memory and the runtime environment.
+
+ -- Markus Loeberbauer <Loeberbauer@ssw.jku.at> Mon, 22 Oct 2007 10:54:00 +0100
+
+coco-cpp (20061206-2) unstable; urgency=low
+
+ * Reworked pointer arithmetics to support 64 bit architectures
+ (Closes: #404713).
+
+ -- Markus Loeberbauer <Loeberbauer@ssw.jku.at> Wed, 3 Jan 2007 14:30:00 +0100
+
+coco-cpp (20061206-1) unstable; urgency=low
+
+ * The declaration of standard whitespaces (namely space) is again done in
+ the file Scanner.frame.
+
+ -- Markus Loeberbauer <Loeberbauer@ssw.jku.at> Wed, 6 Dec 2006 14:30:04 +0100
+
+coco-cpp (20060919-1) unstable; urgency=low
+
+ * Initial release
+ * First upload to Debian unstable.
+ Sponsor: Rene Mayrhofer <rmayr@debian.org>
+
+ -- Markus Loeberbauer <Loeberbauer@ssw.jku.at> Thu, 2 Nov 2006 17:41:04 +0100
+
--- coco-cpp-20120102.orig/debian/copyright
+++ coco-cpp-20120102/debian/copyright
@@ -0,0 +1,52 @@
+This work was packaged for Debian by:
+
+ Markus Loeberbauer <Loeberbauer@ssw.jku.at> on Sat, 21 Jan 2012 19:26:00 +0200
+
+It was downloaded from:
+
+ http://www.ssw.uni-linz.ac.at/Research/Projects/Coco/
+
+Upstream Authors:
+
+ Hanspeter Moessenboeck <moessenboeck@ssw.uni-linz.ac.at>
+ Markus Loeberbauer <Loeberbauer@ssw.jku.at>
+
+Copyright:
+
+ Copyright (C) 1990, 2012 Hanspeter Moessenboeck
+ Copyright (C) 2003, 2012 Markus Loeberbauer
+
+License:
+
+ Compiler Generator Coco/R,
+ Copyright (c) 1990, 2012 Hanspeter Moessenboeck, University of Linz
+ extended by M. Loeberbauer & A. Woess, Univ. of Linz
+ with improvements by Pat Terry, Rhodes University
+
+ 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, 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, write to the Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+
+ As an exception, it is allowed to write an extension of Coco/R that is
+ used as a plugin in non-free software.
+
+ If not otherwise stated, any source code generated by Coco/R (other than
+ Coco/R itself) does not fall under the GNU General Public License.
+
+The Debian packaging is:
+
+ Copyright (C) 2012 Markus Loeberbauer <Loeberbauer@ssw.jku.at>
+
+and is licensed under the GPL version 2,
+see "/usr/share/common-licenses/GPL-2".
+
--- coco-cpp-20120102.orig/debian/compat
+++ coco-cpp-20120102/debian/compat
@@ -0,0 +1 @@
+7
--- coco-cpp-20120102.orig/debian/control
+++ coco-cpp-20120102/debian/control
@@ -0,0 +1,20 @@
+Source: coco-cpp
+Section: devel
+Priority: optional
+Maintainer: Markus Loeberbauer <Loeberbauer@ssw.jku.at>
+Build-Depends: debhelper (>= 8.9.14~), g++ (>=4.6.1)
+Standards-Version: 3.9.2
+Homepage: http://www.ssw.uni-linz.ac.at/Research/Projects/Coco/
+
+Package: coco-cpp
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Coco/R Compiler Generator (C++ Version)
+ Coco/R is a compiler generator, which takes an attributed grammar of a source
+ language and generates a scanner and a parser for this language. The scanner
+ works as a deterministic finite automaton. The parser uses recursive descent.
+ LL(1) conflicts can be resolved by a multi-symbol lookahead or by semantic
+ checks. Thus the class of accepted grammars is LL(k) for an arbitrary k.
+ .
+ To start Coco call cococpp, which is a shell script in /usr/bin.
+
--- coco-cpp-20120102.orig/debian/dirs
+++ coco-cpp-20120102/debian/dirs
@@ -0,0 +1,4 @@
+usr/bin
+usr/lib/coco-cpp
+usr/share/coco-cpp
+
--- coco-cpp-20120102.orig/debian/cococpp.1
+++ coco-cpp-20120102/debian/cococpp.1
@@ -0,0 +1,16 @@
+.TH cococpp 1 "Jan 02, 2012" "Coco/R Compiler Generator (C++ Version)"
+
+.SH NAME
+cococpp \- Coco/R Compiler Generator (C++ Version)
+
+.SH HINT
+
+By default cococpp expects the Parser.frame and Scanner.frame file to be
+in the same directory as the grammar (atg-file) to translate. As the
+frame files are architecture independent, the default frame files can be
+found in /usr/share/coco-cpp/.
+
+.SH SEE ALSO
+
+See package coco-doc for documentation.
+