--- re2c-0.12.1.orig/debian/changelog
+++ re2c-0.12.1/debian/changelog
@@ -0,0 +1,125 @@
+re2c (0.12.1-1~bpo.1) etch-backports; urgency=low
+
+  * Backport to etch.
+
+ -- Robert S. Edmonds <edmonds@debian.org>  Sat, 18 Aug 2007 20:22:21 -0400
+
+re2c (0.12.1-1) unstable; urgency=low
+
+  * New upstream release, closes: #416697.
+  * New maintainer, closes: #320283.
+
+ -- Robert S. Edmonds <edmonds@debian.org>  Sun, 27 May 2007 19:56:53 -0400
+
+re2c (0.9.12-2) unstable; urgency=low
+
+  * QA upload.
+  * re.h: Add forward declaration for gcc 4.1.  Thanks to Martin Michlmayr
+    for the patch.  Closes:  #356168.
+
+ -- Matej Vela <vela@debian.org>  Fri, 10 Mar 2006 08:20:45 +0100
+
+re2c (0.9.12-1) unstable; urgency=low
+
+  * QA upload.
+  * New upstream release.  Closes: #348983.
+
+ -- Matej Vela <vela@debian.org>  Sat, 21 Jan 2006 22:22:46 +0100
+
+re2c (0.9.10-2) unstable; urgency=low
+
+  [ QA Group upload ]
+  * debian/changelog: restore 0.9.1-7 changelog entry
+  * debian/rules:
+    - remove -I. from CFLAGS (redundant)
+    - remove INSTALL* cruft (not used)
+    - touch build-stamp to prevent running the tests twice
+    - use make distclean is buggy, so do the equivalent of it using rm
+    - add binary-indep target as it is required by policy
+    - re2c.1 already installed by upstream
+  * debian/watch:
+    - use version=2 for dehs compatability
+    - quote .tar.gz
+
+ -- Paul Wise <pabs3@bonedaddy.net>  Tue, 18 Oct 2005 17:41:50 +0800
+
+re2c (0.9.10-1) unstable; urgency=low
+
+  [ QA Group upload ]
+  * New upstream release
+  * Add Homepage to package description
+
+ -- Paul Wise <pabs3@bonedaddy.net>  Tue, 18 Oct 2005 17:02:17 +0800
+
+re2c (0.9.9-2) unstable; urgency=low
+
+  [ QA Group upload ]
+  * Clean the source tree properly
+  * Remove prerm/postinst
+  * Strip binaries properly
+  * Fix examples permissions
+
+ -- Paul Wise <pabs3@bonedaddy.net>  Thu,  1 Sep 2005 13:01:08 +0800
+
+re2c (0.9.9-1) unstable; urgency=low
+
+  [ QA Group upload ]
+  * New upstream release (Closes: #300923)
+  * Add watch file
+  * Update to latest standards version (no changes)
+  * Modernise debian/rules
+  * Run tests during build
+  * Update debian/copyright
+
+ -- Paul Wise <pabs3@bonedaddy.net>  Fri, 19 Aug 2005 15:10:37 +0800
+
+re2c (0.9.1-7) unstable; urgency=low
+
+  * QA Group upload orphaning this package
+
+ -- Andrew Pollock <apollock@debian.org>  Wed,  7 Sep 2005 09:47:06 +1000
+
+re2c (0.9.1-6) unstable; urgency=high
+
+  * The bootstrapping system was broken by the last upload.  This upload
+    corrects the bootstrap path, and yacc and re2c paths should work as well.
+
+ -- Daniel Bungert <drb@debian.org>  Thu,  2 Sep 2004 23:55:31 -0400
+
+re2c (0.9.1-5) unstable; urgency=high
+
+  * Apply workaround from  LaMont Jones <lamont@mmjgroup.com> for race
+    condition in build scripts. (Closes: #259337, #268673)
+
+ -- Daniel Bungert <drb@debian.org>  Wed,  1 Sep 2004 20:51:21 -0400
+
+re2c (0.9.1-4) unstable; urgency=low
+
+  * Apply workaround from Serge Semashko <ss@vba.com.by> to remove
+    some useless compilier warnings (warning: label 'foo' defined but
+    not used) in generated code.
+  * Now builds with g++-3.3.
+  * Build with g++3.3 for c102 transition.  (Closes: #236115)
+  * Standards version 3.6.1
+
+ -- Daniel Bungert <drb@debian.org>  Thu, 04 Mar 2004 20:36:19 -0500 
+
+re2c (0.9.1-3) unstable; urgency=low
+
+  * More debian/rules cleaning.
+  * Remove bogus build-dep.
+
+ -- Daniel Bungert <drb@debian.org>  Fri, 08 Mar 2002 11:19:19 -0500
+
+re2c (0.9.1-2) unstable; urgency=low
+
+  * Now builds with g++-3.
+  * A little debian/rules cleaning.
+
+ -- Daniel Bungert <drb@debian.org>  Sun, 11 Nov 2001 15:17:26 -0500 
+
+re2c (0.9.1-1) unstable; urgency=low
+
+  * Initial Release. (Closes: #113641)
+
+ -- Daniel Bungert <drb@debian.org>  Sun, 16 Sep 2001 01:35:17 -0400
--- re2c-0.12.1.orig/debian/compat
+++ re2c-0.12.1/debian/compat
@@ -0,0 +1 @@
+5
--- re2c-0.12.1.orig/debian/control
+++ re2c-0.12.1/debian/control
@@ -0,0 +1,19 @@
+Source: re2c
+Section: devel
+Priority: optional
+Maintainer: Robert S. Edmonds <edmonds@debian.org>
+Build-Depends: debhelper (>= 5), bison
+Standards-Version: 3.7.2
+
+Package: re2c
+Architecture: any
+Depends: ${shlibs:Depends}
+Description: tool for generating fast C-based recognizers
+ re2c is a great tool for writing fast and flexible lexers. Unlike 
+ other such tools, re2c concentrates solely on generating efficient
+ code for matching regular expressions. Not only does this singleness
+ make re2c more suitable for a wider variety of applications, it
+ allows us to generate scanners which approach hand-crafted ones in
+ terms of size and speed.
+ .
+ Homepage: http://re2c.sourceforge.net/
--- re2c-0.12.1.orig/debian/copyright
+++ re2c-0.12.1/debian/copyright
@@ -0,0 +1,30 @@
+This package was debianized by Daniel Bungert <drb@debian.org> on
+Sun, 16 Sep 2001 01:35:17 -0400.
+
+It was downloaded from http://sourceforge.net/projects/re2c/
+
+Upstream Authors: 
+
+Originally written by Peter Bumbulis (peter@csg.uwaterloo.ca)
+Previously maintained by Brian Young (bayoung@acm.org)
+Currently maintained by:
+  * Dan Nuffer <nuffer@users.sourceforge.net>
+  * Marcus Boerger <helly@users.sourceforge.net>
+  * Hartmut Kaiser <hkaiser@users.sourceforge.net>
+
+Copyright:
+
+re2c is distributed with no warranty whatever.  The code is certain to
+contain errors.  Neither the author nor any contributor takes
+responsibility for any consequences of its use.
+
+re2c is in the public domain.  The data structures and algorithms used
+in re2c are all either taken from documents available to the general
+public or are inventions of the author.  Programs generated by re2c may
+be distributed freely.  re2c itself may be distributed freely, in source
+or binary, unchanged or modified.  Distributors may charge whatever fees
+they can obtain for re2c.
+
+If you do make use of re2c, or incorporate it into a larger project an
+acknowledgement somewhere (documentation, research report, etc.) would
+be appreciated.
--- re2c-0.12.1.orig/debian/docs
+++ re2c-0.12.1/debian/docs
@@ -0,0 +1,2 @@
+README
+doc/loplas.ps
--- re2c-0.12.1.orig/debian/examples
+++ re2c-0.12.1/debian/examples
@@ -0,0 +1,2 @@
+examples/*
+lessons
--- re2c-0.12.1.orig/debian/rules
+++ re2c-0.12.1/debian/rules
@@ -0,0 +1,61 @@
+#!/usr/bin/make -f
+
+CFLAGS=-Wall -g
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+	CFLAGS += -O0
+else
+	CFLAGS += -O2
+endif
+
+configure: configure-stamp
+configure-stamp:
+	CFLAGS='$(CFLAGS)' ./configure --prefix=/usr --mandir=/usr/share/man
+	touch configure-stamp
+
+build: configure build-stamp
+build-stamp:
+	dh_testdir
+	$(MAKE)
+	sh ./run_tests.sh
+	touch build-stamp
+
+clean:
+	dh_testdir
+	dh_testroot
+	# make distclean is buggy - it removes scanner.cc
+	-$(MAKE) clean
+	rm -vf *.tab.c README makerpm re2c.1 re2c.spec run_tests.sh
+	rm -vf makerpm re2c.spec README config.h config_w32.h stamp-h1 Makefile
+	rm -vf TAGS ID GTAGS GRTAGS GSYMS GPATH tags configure.status.lineno
+	rm -vf config.status config.cache config.log configure.lineno
+	rm -rf ./.deps
+	rm -f build-stamp configure-stamp
+	dh_clean
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k
+	dh_installdirs
+	$(MAKE) install DESTDIR=$(CURDIR)/debian/re2c
+	dh_installexamples -Xwindows
+	find debian/re2c/usr/share/doc/re2c/examples -type f -exec chmod 0644 {} \;
+
+binary-indep:
+binary-arch: build install
+	dh_testdir
+	dh_testroot
+	dh_installdocs
+	dh_installchangelogs CHANGELOG
+	dh_strip
+	dh_compress
+	dh_fixperms
+	dh_installdeb
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: configure build clean binary-indep binary-arch binary install
--- re2c-0.12.1.orig/debian/watch
+++ re2c-0.12.1/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://sf.net/re2c/re2c-([\d.]*)\.tar\.gz
