--- ratfor-1.0.orig/debian/changelog
+++ ratfor-1.0/debian/changelog
@@ -0,0 +1,95 @@
+ratfor (1.0-15) unstable; urgency=low
+  * Fix bashism in debian/rules (closes: bug#535417)
+ -- Alan Bain <afrb2@debian.org>  Thu, 30 Jul 2009 21:13:02 +0100
+
+ratfor (1.0-14) unstable; urgency=low
+  * Add debian/watch file
+  * Correct md5sum file generation bug
+  * strip removes .comment and .note sections
+ -- Alan Bain <afrb2@debian.org>  Tue, 8 Jul 2008 23:00:23 +0100
+
+ratfor (1.0-13) unstable; urgency=low
+  * remove bashism from debian/rules  (closes: bug#483875)
+ -- Alan Bain <afrb2@debian.org>  Sat, 14 Jun 2008 17:10:23 +0100
+
+ratfor (1.0-12) unstable; urgency=low
+  * handle nostrip option (closes: bug#437880)
+  * generate MD5SUMs
+ -- Alan Bain <afrb2@debian.org>  Fri, 16 May 2008 22:02:18 +0100
+
+ratfor (1.0-11) unstable; urgency=low
+  * changed nonsensical 3.6 standards version to 3.6.2.1
+  * Removed /usr/doc -> /usr/share/doc symlink creation from
+    postinst.
+  * Section & Priority added to control file
+ -- Alan Bain <afrb2@debian.org>  Tue, 23 Aug 2005 18:46:20 +0100
+
+ratfor (1.0-10) unstable; urgency=low
+  * corrected mantainer address so not listed as NMU.
+ -- Alan Bain <afrb2@debian.org>  Tue, 16 Aug 2005 20:51:07 +0100
+
+ratfor (1.0-9) unstable; urgency=low
+  * include statement handling corrected to handle 
+    include statements without quotes (closes: Bug#294509)
+  * Debian standards version update
+ -- Alan Bain <afrb2@debian.org>  Sat, 6 Aug 2005 20:00:00 +0100
+
+ratfor (1.0-8) unstable; urgency=low
+  * Ratfor source stable; no significant maintenance has been 
+    required, but the maintainer is still active.
+ -- Alan Bain <afrb2@debian.org>  Thur, 13 Jun 2002 10:15:00 -0700
+
+ratfor (1.0-7) unstable; urgency=low
+  * Changelog now compressed
+  * FHS file locations adopted
+ -- Alan Bain <afrb2@cam.ac.uk>  Tue, 26 Oct 1999 14:00:00 +0100
+
+ratfor (1.0-6) unstable; urgency=low
+  * non-maintainer uploads incorporated into package
+ -- Alan Bain <afrb2@cam.ac.uk>  Wed, 12 May 1999 10:30:00 +0100
+
+ratfor (1.0-5.2) unstable; urgency=low
+
+  * non-maintainer upload to fix old bug reports
+  * fixed debian/rules to use "make -f Makefile". Fixes:#25713,#27002,#27028
+  * .2 version to override the Alpha .1 sourceless NMU
+
+ -- Paul Slootman <paul@debian.org>  Wed, 16 Dec 1998 11:31:32 +0100
+
+ratfor (1.0-5) unstable; urgency=low
+        * copyright location now fixed
+ -- Alan Bain <afrb2@cam.ac.uk>  Sun, 21 Jun 1998 22:30:00 +0100
+ratfor (1.0-4) unstable; urgency=low
+        * fixed packaging problems which remained
+        * new standards version
+ -- Alan Bain <afrb2@cam.ac.uk>  Fri, 8 May 1998 14:00:00 +0100
+Mon Jan 19 18:00:00 1998  Alan Bain <afrb2@cam.ac.uk>
+       
+        * Updated to new source package format
+
+Fri Aug  2 19:22:05 1996  Emilio Lopes  <ecl@fnpc21.if.usp.br>
+
+	* debian.control (Recommends): now "g77 | f2c", previously "g77,
+ 	f2c".
+
+Thu Jul 18 18:43:36 1996  Emilio Lopes  <ecl@fnpc21.if.usp.br>
+
+	* debian.rules: changed in order to support the "Priority:"
+ 	  field. Created target to make the changes file. Changed to
+ 	  support the new naming convention using underscores.
+      
+	* debian.control: added "Priority:" field. No more recommends gcc;
+ 	  it's up to f2c to do this.
+	
+Wed Jun 26 17:17:17 1996  Emilio Lopes  <ecl@fnpc21.if.usp.br>
+
+	* debian.control: Changed to support multi-architecture.
+
+	* debian.rules: Changed to support multi-architecture.
+ 	                Now uses dpkg-name to move .deb file
+
+	* ratfor.1: Fixed some fontchange commands.
+Local variables:
+mode: debian-changelog
+End:
+
--- ratfor-1.0.orig/debian/compat
+++ ratfor-1.0/debian/compat
@@ -0,0 +1 @@
+5
--- ratfor-1.0.orig/debian/control
+++ ratfor-1.0/debian/control
@@ -0,0 +1,18 @@
+Source: ratfor
+Section: devel
+Priority: optional
+Maintainer: Alan Bain <afrb2@debian.org> 
+Standards-Version: 3.8.2
+Build-Depends: debhelper(>=5.0)
+
+Package: ratfor
+Architecture: any
+Depends: ${shlibs:Depends}
+Recommends: g77 | fort77, f2c
+Description: Rational Fortran preprocessor for Fortran 77
+ Ratfor77 is a preprocessor that converts the Rational Fortran dialect
+ into ordinary Fortran 77. The output can then be compiled using g77
+ or f2c + gcc.
+ .
+ The Ratfor dialect provides C-like control structures and some
+ syntactic sugar that makes Fortran programs easier to read and write.
--- ratfor-1.0.orig/debian/copyright
+++ ratfor-1.0/debian/copyright
@@ -0,0 +1,39 @@
+Author
+======
+
+Ratfor77 was written by: oz
+                         Usenet: [decvax|ihnp4]!utzoo!yetti!oz ||
+                                     ...seismo!mnetor!yetti!oz
+                         Bitnet: oz@[yusol|yuyetti].BITNET
+                         Phonet: [416] 736-5257 x 3976
+
+This package was put together by Emilio Lopes <ecl@finpe.if.usp.br>,
+from sources obtained from:
+
+   sepftp.stanford.edu:/pub/sep-distr/tools/ratfor77
+
+Debian packaging subsequently updated by Alan Bain <afrb2@debian.org>
+
+Copyright information
+=====================
+Ratfor 77 is public domain software
+
+The following copyright information was extracted from the file
+`README' in the original distribution:
+
+   This code *is* PD. You (public) have all the rights to the code.
+   [But this also means you (singular) do not have any *extra*
+   rights to the code, hence it is impossible for you to restrict
+   the use and distribution of this code in any way.]
+   
+   I would, as usual, appreciate hearing about bug fixes and
+   improvements.
+   
+   oz
+   
+   Usenet: [decvax|ihnp4]!utzoo!yetti!oz ||
+               ...seismo!mnetor!yetti!oz
+   Bitnet: oz@[yusol|yuyetti].BITNET
+   Phonet: [416] 736-5257 x 3976
+
+EOF
--- ratfor-1.0.orig/debian/rules
+++ ratfor-1.0/debian/rules
@@ -0,0 +1,99 @@
+#!/usr/bin/make -f
+## This is the debian.rules file for the package
+## ratfor, by Emilio C. Lopes <ecl@finpe.if.usp.br>.
+## updated by Alan Bain <afrb2@cam.ac.uk>.
+
+## updated based on f2c's files and hello package
+package=ratfor
+
+## The architecture
+arch = $(shell dpkg --print-architecture)
+
+INSTALL = /usr/bin/install
+INSTALL_PROGRAM = $(INSTALL) -o root -g root -m 0755 
+
+CFLAGS = -g -DF77 -DS_CHAR=\"signed char\"
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+   CFLAGS += -O0
+else
+   CFLAGS += -O2
+endif
+
+ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
+   INSTALL_PROGRAM += -s
+endif
+
+
+
+build:  
+	$(checkdir)
+## Builds the binary package.
+	make -f Makefile CFLAGS="$(CFLAGS)"
+	touch stamp-build
+
+clean: $(checkdir)
+## Undoes the effect of `make -f debian.rules build'.
+	make -f Makefile clean
+	rm -f stamp-build debian/files debian/substvars
+	rm -rf debian/tmp
+
+binary-indep:  checkroot build
+	$(checkdir)
+
+binary-arch: checkroot build 
+	$(checkdir)
+## Makes a binary package.
+	test -f stamp-build || make -f debian/rules build
+	rm -rf debian/tmp > /dev/null 2>&1
+	install -d -o root -g root -m 755 debian/tmp
+	chmod g-s debian/tmp
+	install -d -o root -g root -m 755 debian/tmp/usr/bin
+	$(INSTALL_PROGRAM) ratfor debian/tmp/usr/bin
+ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
+	strip --remove-section=.comment --remove-section=.note debian/tmp/usr/bin/ratfor 
+endif
+
+	install -d -o root -g root -m 755 debian/tmp/usr/share/man/man1
+	install -o root -g root -m 644 ratfor.1 debian/tmp/usr/share/man/man1
+	gzip -9f debian/tmp/usr/share/man/man1/ratfor.1
+	install -d -o root -g root -m 755 debian/tmp/usr/share/doc/$(package)
+	install -o root -g root -m 644  BUGS\
+	  debian/tmp/usr/share/doc/$(package)
+## do package copyright
+	install -d -o root -g root -m 755 debian/tmp/usr/share/doc/$(package)
+	install -o root -g root -m 644  debian/copyright \
+	debian/tmp/usr/share/doc/$(package)/copyright
+	install -d -o root -g root -m 755 debian/tmp/usr/share/doc/$(package)/examples
+	install -o root -g root -m 644 *.r \
+	  debian/tmp/usr/share/doc/$(package)/examples
+	gzip -9f debian/tmp/usr/share/doc/$(package)/examples/*.r
+	install -d -o root -g root -m 755 debian/tmp/DEBIAN
+
+	install -c -m 0644 debian/changelog \
+                              debian/tmp/usr/share/doc/$(package)/changelog.Debian 
+	gzip -9 debian/tmp/usr/share/doc/$(package)/changelog.Debian
+	dpkg-shlibdeps ./ratfor                                                
+	dpkg-gencontrol -isp
+	dh_md5sums --tmpdir=debian/tmp
+	chown -R root.root debian/tmp                                           
+	chmod -R go-ws debian/tmp
+	dpkg --build debian/tmp ..
+
+define checkdir                                                                 
+	test -f rat4.c -a -f debian/rules                                 
+endef                                                                           
+                                                                               
+## Below Here is Generic                                                        
+                                                                                
+binary: binary-indep binary-arch                                                
+                                                                                
+source diff:                                                                    
+	@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false    
+                                                                                
+dist:  binary source diff changes                                               
+
+checkroot:
+	$(checkdir)
+	test root = "`whoami`"
+.PHONY: binary binary-arch binary-indep clean checkroot
+
--- ratfor-1.0.orig/debian/watch
+++ ratfor-1.0/debian/watch
@@ -0,0 +1,2 @@
+# This package is not believed to be maintained upstream 
+
