--- redet-8.26.orig/debian/changelog
+++ redet-8.26/debian/changelog
@@ -0,0 +1,200 @@
+redet (8.26-1.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Switched to Tcl/Tk 8.5 to match changes in itcl3 and itk3 packages.
+
+ -- Sergei Golovan <sgolovan@debian.org>  Wed, 02 Sep 2009 19:07:17 +0400
+
+redet (8.26-1) unstable; urgency=low
+
+  * New upstream version. 
+
+ -- Bartosz Fenski <fenio@debian.org>  Mon, 02 Feb 2009 22:50:10 +0100
+
+redet (8.24-1) unstable; urgency=low
+
+  * New upstream release.
+  * Moved URL to homepage header.
+  * Bumped Standards-Version (no changes needed).
+  * Reworded debian/copyright file to make lintian happy.
+  * Changed documentation section to make lintian happy.
+
+ -- Bartosz Fenski <fenio@debian.org>  Wed, 23 Apr 2008 14:44:10 +0200
+
+redet (8.23-1) unstable; urgency=low
+
+  * New upstream release. 
+  * Rename Apps to Applications in menu.
+
+ -- Bartosz Fenski <fenio@debian.org>  Sat, 13 Oct 2007 17:33:36 +0200
+
+redet (8.18-1) unstable; urgency=low
+
+  * New upstream release. 
+
+ -- Bartosz Fenski <fenio@debian.org>  Fri, 17 Nov 2006 16:28:46 +0100
+
+redet (8.17-1) unstable; urgency=low
+
+  * New upstream release. 
+
+ -- Bartosz Fenski <fenio@debian.org>  Sun,  5 Nov 2006 14:51:57 +0100
+
+redet (8.16-1) unstable; urgency=low
+
+  * New upstream version. 
+  * Bumped Standards-Version (no changes needed).
+  * s/Build-Depends-Indep/Build-Depends/.
+
+ -- Bartosz Fenski <fenio@debian.org>  Wed, 20 Sep 2006 00:43:05 +0200
+
+redet (8.14-1) unstable; urgency=low
+
+  * New upstream version.
+
+ -- Bartosz Fenski <fenio@debian.org>  Mon, 31 Jul 2006 13:18:47 +0200
+
+redet (8.12-1) unstable; urgency=low
+
+  * New upstream version.
+
+ -- Bartosz Fenski <fenio@debian.org>  Mon,  3 Jul 2006 23:15:10 +0200
+
+redet (8.11-1) unstable; urgency=low
+
+  * New upstream version.
+
+ -- Bartosz Fenski <fenio@debian.org>  Sat, 27 May 2006 15:19:41 +0200
+
+redet (8.10-1) unstable; urgency=low
+
+  * New upstream release. 
+
+ -- Bartosz Fenski <fenio@debian.org>  Tue, 11 Apr 2006 13:35:16 +0200
+
+redet (8.9-1) unstable; urgency=low
+
+  * New upstream release. 
+
+ -- Bartosz Fenski <fenio@debian.org>  Thu, 16 Mar 2006 13:56:07 +0100
+
+redet (8.6-1) unstable; urgency=low
+
+  * New upstream version.
+
+ -- Bartosz Fenski <fenio@debian.org>  Thu,  2 Feb 2006 12:40:37 +0100
+
+redet (8.5-1) unstable; urgency=low
+
+  * New upstream version. 
+
+ -- Bartosz Fenski <fenio@debian.org>  Sat, 28 Jan 2006 11:33:35 +0100
+
+redet (8.4-1) unstable; urgency=low
+
+  * New upstream version. 
+
+ -- Bartosz Fenski <fenio@debian.org>  Wed, 18 Jan 2006 00:28:46 +0100
+
+redet (8.2-1) unstable; urgency=low
+
+  * New upstream version. 
+
+ -- Bartosz Fenski <fenio@debian.org>  Wed,  4 Jan 2006 16:18:20 +0100
+
+redet (8.1-1) unstable; urgency=low
+
+  * New upstream version.
+
+ -- Bartosz Fenski <fenio@debian.org>  Mon, 26 Dec 2005 19:41:52 +0100
+
+redet (8.0-1) unstable; urgency=low
+
+  * New upstream version.
+
+ -- Bartosz Fenski <fenio@debian.org>  Wed, 21 Dec 2005 09:34:15 +0100
+
+redet (7.10-1) unstable; urgency=low
+
+  * New upstream version.
+
+ -- Bartosz Fenski <fenio@debian.org>  Thu, 15 Dec 2005 11:03:37 +0100
+
+redet (7.9-1) unstable; urgency=low
+
+  * New upstream release. 
+
+ -- Bartosz Fenski <fenio@debian.org>  Tue,  6 Dec 2005 13:44:25 +0100
+
+redet (7.6-1) unstable; urgency=low
+
+  * New upstream version. 
+
+ -- Bartosz Fenski <fenio@debian.org>  Mon, 28 Nov 2005 14:44:57 +0100
+
+redet (7.5-1) unstable; urgency=low
+
+  * New upstream version. 
+
+ -- Bartosz Fenski <fenio@debian.org>  Sun, 30 Oct 2005 12:24:42 +0100
+
+redet (7.4-1) unstable; urgency=low
+
+  * New upstream version. 
+
+ -- Bartosz Fenski <fenio@debian.org>  Fri, 14 Oct 2005 14:52:35 +0200
+
+redet (7.3-1) unstable; urgency=low
+
+  * New upstream version. 
+  * Added iwidgets4 dependency.
+
+ -- Bartosz Fenski <fenio@debian.org>  Mon, 26 Sep 2005 12:56:21 +0200
+
+redet (7.1-1) unstable; urgency=low
+
+  * New upstream version.
+
+ -- Bartosz Fenski <fenio@debian.org>  Fri,  2 Sep 2005 18:15:59 +0200
+
+redet (7.0-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Bartosz Fenski <fenio@debian.org>  Mon, 15 Aug 2005 13:20:27 +0200
+
+redet (6.14-1) unstable; urgency=low
+
+  * New upstream release.
+  * Make redet-doc Section: doc to stop messages about disparity.
+  * Changed address of homepage (control/copyright files).
+
+ -- Bartosz Fenski <fenio@debian.org>  Wed, 10 Aug 2005 10:37:05 +0200
+
+redet (6.13-1) unstable; urgency=low
+
+  * New upstream version.
+  * Patch changing path has been fixed to work with new version.
+
+ -- Bartosz Fenski <fenio@debian.org>  Thu, 28 Jul 2005 11:41:08 +0200
+
+redet (6.12-2) unstable; urgency=low
+
+  * Fixed wrong path in doc-base file. 
+    Thanks to Aaron M. Ucko for spotting it. (Closes: #319223)
+  
+ -- Bartosz Fenski <fenio@debian.org>  Tue, 19 Jul 2005 11:26:22 +0200
+
+redet (6.12-1) unstable; urgency=low
+
+  * New upstream version.
+  * Redet binary has been patched to set proper path to manual.
+  
+ -- Bartosz Fenski <fenio@debian.org>  Tue, 19 Jul 2005 11:26:22 +0200
+
+redet (6.9.1-1) unstable; urgency=low
+
+  * Initial release (Closes: #311321)
+
+ -- Bartosz Fenski <fenio@debian.org>  Tue,  5 Jul 2005 17:46:29 +0200
+
--- redet-8.26.orig/debian/redet.menu
+++ redet-8.26/debian/redet.menu
@@ -0,0 +1,3 @@
+?package(redet):needs="X11" section="Applications/Programming"\
+  title="redet" command="/usr/bin/redet" \
+  longtitle="Regular expression development and execution tool"
--- redet-8.26.orig/debian/rules
+++ redet-8.26/debian/rules
@@ -0,0 +1,73 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Sample debian/rules that uses debhelper.
+#
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+# This has to be exported to make some magic below work.
+export DH_OPTIONS
+
+include /usr/share/dpatch/dpatch.make
+
+CFLAGS = -Wall -g
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+	CFLAGS += -O0
+else
+	CFLAGS += -O2
+endif
+
+configure: configure-stamp
+configure-stamp:
+	dh_testdir
+	touch configure-stamp
+
+build: build-indep
+
+build-indep: build-indep-stamp
+build-indep-stamp: patch-stamp configure-stamp 
+
+	touch build-indep-stamp
+
+clean: unpatch
+	dh_testdir
+	dh_testroot
+	rm -f build-indep-stamp
+	dh_clean 
+
+install: install-indep
+install-indep:
+	dh_testdir
+	dh_testroot
+	dh_clean -k -i 
+	dh_installdirs -i
+	dh_install -i
+	mv debian/redet/usr/bin/redet.tcl debian/redet/usr/bin/redet
+
+binary-common:
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs 
+	dh_installdocs
+	dh_installexamples
+	dh_installmenu
+	dh_installman
+	dh_link
+	dh_strip
+	dh_compress 
+	dh_fixperms
+	dh_makeshlibs
+	dh_installdeb
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary-indep: build-indep install-indep
+	$(MAKE) -f debian/rules DH_OPTIONS=-i binary-common
+
+binary: binary-indep
+.PHONY: build clean binary-indep binary install install-indep configure \
+patch unpatch
+
--- redet-8.26.orig/debian/redet.dirs
+++ redet-8.26/debian/redet.dirs
@@ -0,0 +1 @@
+usr/bin
--- redet-8.26.orig/debian/redet.docs
+++ redet-8.26/debian/redet.docs
@@ -0,0 +1,2 @@
+README-General
+CREDITS
--- redet-8.26.orig/debian/redet.install
+++ redet-8.26/debian/redet.install
@@ -0,0 +1 @@
+redet.tcl /usr/bin
--- redet-8.26.orig/debian/redet-doc.install
+++ redet-8.26/debian/redet-doc.install
@@ -0,0 +1 @@
+Manual /usr/share/doc/redet-doc/
--- redet-8.26.orig/debian/redet.examples
+++ redet-8.26/debian/redet.examples
@@ -0,0 +1,7 @@
+SampleClasses.utf8
+SampleCustomCharacterWidgetDefinition_Greek
+SampleCustomCharacterWidgetDefinition_Armenian
+SampleNewStyleDotRedetRC_Simple
+SampleNewStyleDotRedetRC_Elaborate
+
+
--- redet-8.26.orig/debian/copyright
+++ redet-8.26/debian/copyright
@@ -0,0 +1,19 @@
+This package was debianized by Bartosz Fenski <fenio@debian.org> on
+Tue,  5 Jul 2005 17:46:29 +0200.
+
+It was downloaded from http://www.billposer.org/Software/redet.html
+
+Copyright:
+	
+	Copyright (C) 2007-2008 William J. Poser <billposer@alum.mit.edu>
+	See also /usr/share/doc/redet/CREDITS file.
+
+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, or (at your option) any
+ later version.
+
+ On Debian systems, the complete text of the GNU General Public License
+ can be found in the file `/usr/share/common-licenses/GPL'.
--- redet-8.26.orig/debian/compat
+++ redet-8.26/debian/compat
@@ -0,0 +1 @@
+4
--- redet-8.26.orig/debian/control
+++ redet-8.26/debian/control
@@ -0,0 +1,38 @@
+Source: redet
+Section: x11
+Priority: optional
+Maintainer: Bartosz Fenski <fenio@debian.org>
+Build-Depends: debhelper (>= 4.0.0), dpatch
+Standards-Version: 3.7.3
+Homepage: http://www.billposer.org/Software/redet.html
+
+Package: redet
+Architecture: all
+Depends: tk8.5, iwidgets4
+Suggests: redet-doc, dillo
+Description: regular expression development and execution tool
+ Redet allows the user to construct regular expressions and test them against 
+ input data by executing any of a variety of search programs, editors, 
+ and programming languages that make use of regular expressions. When a 
+ suitable regular expression has been constructed it may be saved to a file.
+ .
+ Redet stands for Regular Expression Development and Execution 
+ Tool. For each program, a palette showing the available regular expression 
+ syntax is provided. Selections from the palette may be copied to the 
+ regular expression window with a mouse click. Users may add their own 
+ definitions to the palette via their initialization file. 
+ Redet also keeps a list of the regular expressions executed, from which 
+ entries may be copied back into the regular expression under construction. 
+ The history list is saved to a file and restored on startup, so it 
+ persists across sessions.
+ .
+ So long as the underlying program supports Unicode, Redet allows UTF-8 
+ Unicode in both test data and regular expressions.
+
+Package: redet-doc
+Architecture: all
+Section: doc
+Suggests: redet
+Description: regular expression development and execution tool (documentation)
+ Documentation for the Redet (regular expression development and execution
+ tool.
--- redet-8.26.orig/debian/redet-doc.doc-base
+++ redet-8.26/debian/redet-doc.doc-base
@@ -0,0 +1,10 @@
+Document: redet
+Title: Redet Manual
+Author: William J. Poser <billposer@alum.mit.edu>
+Abstract: This manual describes what Redet is and how it can be used.
+Section: Programming
+
+Format: HTML
+Index: /usr/share/doc/redet-doc/Manual/Manual.html
+Files: /usr/share/doc/redet-doc/Manual/*.html
+
--- redet-8.26.orig/debian/redet.manpages
+++ redet-8.26/debian/redet.manpages
@@ -0,0 +1 @@
+redet.1
--- redet-8.26.orig/debian/patches/02_wish.dpatch
+++ redet-8.26/debian/patches/02_wish.dpatch
@@ -0,0 +1,33 @@
+#! /bin/sh -e
+## 02_wish.dpatch
+## Sergei Golovan <sgolovan@debian.org>
+
+patch_opts="${patch_opts:--f --no-backup-if-mismatch ${2:+-d $2}}"
+
+if [ $# -ne 1 ]; then
+    echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
+    exit 1
+fi
+case "$1" in
+	-patch) patch $patch_opts -p1 < $0;;
+	-unpatch) patch $patch_opts -R -p1 < $0;;
+	*)
+		echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
+		exit 1;;
+esac
+ 
+exit 0
+
+@DPATCH@
+diff -ru redet.orig/redet.tcl redet/redet.tcl
+--- redet.orig/redet.tcl
++++ redet/redet.tcl
+@@ -1,7 +1,7 @@
+ #!/bin/sh
+ #-*- mode: Tcl;time-stamp-start:"TimeStamp[ 	]+\\\\?[\"<]+";-*-
+ # the next line restarts using wish \
+-exec wish $0 -- $@
++exec wish8.5 $0 -- $@
+ set TimeStamp "2008-09-11 20:14:21 poser"
+ #
+ # Copyright (C) 2003-2008 William J. Poser (billposer@alum.mit.edu)
--- redet-8.26.orig/debian/patches/01_path.dpatch
+++ redet-8.26/debian/patches/01_path.dpatch
@@ -0,0 +1,33 @@
+#! /bin/sh -e
+## redet.dpatch
+## Bartosz Fenski <fenio@debian.org>
+
+patch_opts="${patch_opts:--f --no-backup-if-mismatch ${2:+-d $2}}"
+
+if [ $# -ne 1 ]; then
+    echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
+    exit 1
+fi
+case "$1" in
+	-patch) patch $patch_opts -p1 < $0;;
+	-unpatch) patch $patch_opts -R -p1 < $0;;
+	*)
+		echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
+		exit 1;;
+esac
+ 
+exit 0
+
+@DPATCH@
+diff -ru redet-6.13.orig/redet.tcl redet-6.13/redet.tcl
+--- redet-6.13.orig/redet.tcl	2005-07-28 10:53:55.000000000 +0200
++++ redet-6.13/redet.tcl	2005-07-28 11:46:40.000000000 +0200
+@@ -51,7 +51,7 @@
+ set HistoryFile  ".redethist";
+ set JournalFile  ".redetlog";
+ set ColorFile    ".redetcolors";
+-set NonBinPath [file join /usr local share Redet];
++set NonBinPath [file join /usr share doc redet-doc];
+ 
+ #Portability
+ #Figure out what system we are running on
--- redet-8.26.orig/debian/patches/00list
+++ redet-8.26/debian/patches/00list
@@ -0,0 +1,2 @@
+01_path
+02_wish
