--- ftnchek-3.3.1.orig/debian/README.debian +++ ftnchek-3.3.1/debian/README.debian @@ -0,0 +1,13 @@ +ftncheck for Debian +------------------- + +ftnchek is a static analyser which checks Fortran source for +correctness. It currently supports Fortran 77 and some aspects of +Fortran 90 and 95. It is intended to improve on the error detection +facilities of compilers, identifying problems which are either hard to +catch and constructs which (while strictly legal) are likely to indicate +an error. + +ftnchek can also be used to provide call-trees, cross-reference of +subprogram calls and COMMON blocks usage, source listings, symbol tables +and other things you might find useful when debugging a Fortran program. --- ftnchek-3.3.1.orig/debian/README.emacs +++ ftnchek-3.3.1/debian/README.emacs @@ -0,0 +1,17 @@ +Emacs support for ftnchek +------------------------- + +When ftnchek is installed, Emacs has some support for it. The following +new Lisp functions are defined: + + Key Lisp function Function + --- ------------- -------- + ftnchek-buffer Run ftnchek on the current buffer + ftnchek-subprogram Run ftnchek on the current subprogram + fortran-what-subprogram Identify the current subprogram + C-x ` ftnchek-next-error Display the next error + +Under GNU Emacs, several of these commands are accessable from the +Fortran 77 menu. They can also be run using "M-x function-name". The +options to be used when running ftnchek can be set using the +ftnchek-flags variable. --- ftnchek-3.3.1.orig/debian/changelog +++ ftnchek-3.3.1/debian/changelog @@ -0,0 +1,256 @@ +ftnchek (3.3.1-6) unstable; urgency=low + + * Add build-arch and build indep targets (closes: #999007). + * Policy 4.5.1 (no changes). + * debhelper 13 (no changes). + + -- Mark Brown Fri, 18 Mar 2022 01:09:37 +0000 + +ftnchek (3.3.1-5) unstable; urgency=low + + * Update to debhelper 9. + * Policy 3.9.4 (no changes). + + -- Mark Brown Fri, 03 May 2013 10:53:07 +0100 + +ftnchek (3.3.1-4) unstable; urgency=low + + * Force use of /usr/bin/awk. + * Policy 3.7.3 (no changes). + + -- Mark Brown Tue, 05 Feb 2008 23:21:05 +0000 + +ftnchek (3.3.1-3) unstable; urgency=low + + * Implement nostrip support (closes: #436881). + + -- Mark Brown Thu, 09 Aug 2007 12:40:59 +0100 + +ftnchek (3.3.1-2) unstable; urgency=low + + * Stop the upstream Makefile being clever with Emacs. + + -- Mark Brown Thu, 19 Jul 2007 10:03:19 +0100 + +ftnchek (3.3.1-1) unstable; urgency=low + + * New upstream release. + * Policy 3.6.1 (no changes). + + -- Mark Brown Mon, 21 Feb 2005 09:19:16 +0000 + +ftnchek (3.2.2-3) unstable; urgency=low + + * Rename regexp-or to ftnchek-regexp-or in ftncheck.el to avoid conflicts + with other packages (closes: #293855). + + -- Mark Brown Sun, 6 Feb 2005 13:20:27 +0000 + +ftnchek (3.2.2-2) unstable; urgency=low + + * Only add ftnchek-mode to the fortran-mode hooks if the ftnchek library is + loadable (closes: #189324). + + -- Mark Brown Wed, 16 Apr 2003 21:25:34 +0100 + +ftnchek (3.2.2-1) unstable; urgency=low + + * New upstream release. + * Convert to debhelper version 4. + * Update to policy 3.5.9 (no changes). + + -- Mark Brown Wed, 2 Apr 2003 18:05:54 +0100 + +ftnchek (3.2.1-2) unstable; urgency=low + + * Add build dep on groff-base for soelim. + + -- Mark Brown Wed, 22 Jan 2003 07:49:04 +0000 + +ftnchek (3.2.1-1) unstable; urgency=low + + * New upstream release. + * Use config.sub and config.guess from autotools-dev. + + -- Mark Brown Mon, 20 Jan 2003 08:37:22 +0000 + +ftnchek (3.2.0-1) unstable; urgency=low + + * New upstream release. + * Updated to policy 3.5.8. + + -- Mark Brown Fri, 6 Dec 2002 18:11:29 +0000 + +ftnchek (3.1.2-3) unstable; urgency=low + + * Load Lisp file on demand rather than unconditionally (closes: #151585). + + -- Mark Brown Mon, 1 Jul 2002 20:08:17 +0100 + +ftnchek (3.1.2-2) unstable; urgency=low + + * Add build dependancy on debhelper (closes: #140260). + + -- Mark Brown Thu, 28 Mar 2002 10:49:50 +0000 + +ftnchek (3.1.2-1) unstable; urgency=low + + * New upstream release. + + -- Mark Brown Thu, 20 Dec 2001 21:05:30 +0000 + +ftnchek (3.1.1-1) unstable; urgency=low + + * New upstream release. + + -- Mark Brown Fri, 15 Jun 2001 09:57:22 +0100 + +ftnchek (3.1.0-1) unstable; urgency=low + + * New upstream release. + + -- Mark Brown Fri, 8 Jun 2001 16:13:23 +0100 + +ftnchek (3.0.4-2) unstable; urgency=low + + * Install Emacs Lisp package (closes: #96215). + + -- Mark Brown Fri, 4 May 2001 09:32:38 +0100 + +ftnchek (3.0.4-1) unstable; urgency=low + + * New upstream release. + * Updated to policy 3.5.2 (no changes). + + -- Mark Brown Fri, 30 Mar 2001 00:31:34 +0100 + +ftnchek (3.0.2-1) unstable; urgency=low + + * New upstream release. + + -- Mark Brown Fri, 26 Jan 2001 18:40:26 +0000 + +ftnchek (3.0.1-1) unstable; urgency=low + + * New upstream release. + * Update to policy 3.2.1 (no changes). + + -- Mark Brown Sun, 14 Jan 2001 17:30:10 +0000 + +ftnchek (3.0.0-1) unstable; urgency=low + + * New upstream release. + + -- Mark Brown Sun, 15 Oct 2000 15:03:40 +0100 + +ftnchek (2.12.2-1) unstable; urgency=low + + * New upstream release. + + -- Mark Brown Thu, 3 Aug 2000 05:23:35 +0100 + +ftnchek (2.12.1-1) unstable; urgency=low + + * New upstream release. + + -- Mark Brown Fri, 23 Jun 2000 18:21:46 +0100 + +ftnchek (2.12.0-1) unstable; urgency=low + + * New upstream release. + + -- Mark Brown Sun, 16 Apr 2000 16:14:55 +0100 + +ftnchek (2.11.2-2) frozen unstable; urgency=low + + * Fix elisp installation (closes: #55852). + + -- Mark Brown Sat, 22 Jan 2000 00:47:37 +0000 + +ftnchek (2.11.2-1) unstable; urgency=low + + * New upstream release (closes: #50797). + + -- Mark Brown Sun, 21 Nov 1999 13:26:19 +0000 + +ftnchek (2.11.0-1) unstable; urgency=low + + * New upstream version. + + -- Mark Brown Sat, 9 Oct 1999 01:16:25 +0100 + +ftnchek (2.10.1-5) unstable; urgency=low + + * Update to standards version 3.0.1 plus technical committee decision + on /usr/doc move. + + -- Mark Brown Tue, 7 Sep 1999 01:04:02 +0100 + +ftnchek (2.10.1-4) unstable; urgency=low + + * Fixed broken standards version. + * Removed GPLed shell_mung.c from upstream source fixing potential + license conflict - it will be removed upstream in future versions. + + -- Mark Brown Fri, 26 Mar 1999 08:30:23 +0000 + +ftnchek (2.10.1-3) unstable; urgency=low + + * Now installs Emacs mode. + * Changed to debhelper. + * Run testsuite as part of build. + + -- Mark Brown Thu, 11 Mar 1999 15:57:48 +0000 + +ftnchek (2.10.1-2) unstable; urgency=low + + * Applied forlex.c.patch from upstream author. + + -- Mark Brown Sun, 28 Feb 1999 22:34:30 +0000 + +ftnchek (2.10.1-1) unstable; urgency=low + + * New upstream release (fixes bugs #13395, #16324 and #27557). + * Included revised copyright in /usr/doc/ftnchek/copyright. + * Now suggests fortran77-compiler instead of f2c | g77. + * Revised README.Debian and included upstream FAQ. + * Install HTML version of manpage and register it with doc-base. + * New maintainter + + -- Mark Brown Sun, 7 Feb 1999 14:16:13 +0000 + +ftnchek (2.9.4-1.2) frozen unstable; urgency=low + + * Let's try this again - non-maintainer release to build with libc6, + uploaded to both frozen and unstable this time. + + -- Joey Hess Sun, 29 Mar 1998 13:26:29 -0800 + +ftnchek (2.9.4-1.1) unstable; urgency=low + + * Non-maintainer release to build with libc6. + + -- Joey Hess Sat, 28 Mar 1998 16:33:51 -0800 + +ftnchek (2.9.4-1) unstable; urgency=low + + * New upstream version. + * New package format. Uses deb-make now. + * New packager address. + + -- Emilio C. Lopes Tue, 1 Jul 1997 22:11:23 +0200 + +Old changelog information follow: + +Fri Aug 2 19:29:08 1996 Emilio Lopes + + * debian.control (Suggests): now "g77 | f2c", previously "g77, + f2c". + +Thu Jul 18 17:20:40 1996 Emilio Lopes + + * debian.rules: added support for the "Priority:" field. Added + rule to make the changes file. + + * debian.control: added dependency on gawk, necessary for + dcl2inc. Added "Priority:" field. --- ftnchek-3.3.1.orig/debian/compat +++ ftnchek-3.3.1/debian/compat @@ -0,0 +1 @@ +13 --- ftnchek-3.3.1.orig/debian/control +++ ftnchek-3.3.1/debian/control @@ -0,0 +1,27 @@ +Source: ftnchek +Section: devel +Priority: extra +Maintainer: Mark Brown +Build-Depends: debhelper (>= 13), autotools-dev, groff-base, dpkg-dev (>= 1.16.1) +Standards-Version: 4.5.1 + +Package: ftnchek +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Suggests: fortran77-compiler +Description: Semantic checker for Fortran 77 programs + ftnchek (short for Fortran checker) is a tool designed to detect + certain errors in a Fortran program that a compiler usually does not, + thus assisting users in the debugging of their Fortran programs. + . + Unlike syntax errors, semantic errors are legal in the Fortran + language but are wasteful or may cause incorrect operation. For + example, variables which are never used may indicate some omission in + the program; uninitialized variables contain garbage which may cause + incorrect results to be calculated; and variables which are not + declared may not have the intended type. + . + ftnchek can also be used to provide call-trees, cross-reference of + subprogram calls and COMMON blocks usage, source listings, symbol + tables and other things you might find useful when debugging a + Fortran program. --- ftnchek-3.3.1.orig/debian/copyright +++ ftnchek-3.3.1/debian/copyright @@ -0,0 +1,38 @@ +This package was debianised by Emilo C. Lopes . It has +since been adopted by Mark Brown . The original +source was downloaded from + + ftp://ftp.dsm.fordham.edu/pub/ftnchek2.11/ftnchek-2.11.0.tar.gz + +The author is Bob Moniot . The Emacs support +for ftnchek was written by Judah Milgram and is +distributed under the terms of the GNU General Public License, a copy of +which can be found in /usr/share/common-licenses/GPL. ftnchek itself is +distributed under the following license: + +Copyright (c) 1999 by Robert K. Moniot. + +Permission is hereby granted, free of charge, to any person obtaining a +copy of this software and associated documentation files (the "Software"), +to deal in the Software without restriction, including without limitation +the rights to use, copy, modify, merge, publish, distribute, sublicense, +and/or sell copies of the Software, and to permit persons to whom the +Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +ROBERT K. MONIOT OR FORDHAM UNIVERSITY BE LIABLE FOR ANY CLAIM, DAMAGES OR +OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, +ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +OTHER DEALINGS IN THE SOFTWARE. + +Except as contained in this notice, the name of ftnchek shall not be used +in advertising or otherwise to promote the sale, use or other dealings in +this Software without prior written authorization from the author. + +Acknowledgement: the above permission notice was copied, with minor +changes, from the XFree86 Project. --- ftnchek-3.3.1.orig/debian/docs +++ ftnchek-3.3.1/debian/docs @@ -0,0 +1,5 @@ +README +PATCHES +FAQ +html +project-doc.tex --- ftnchek-3.3.1.orig/debian/ftnchek.dirs +++ ftnchek-3.3.1/debian/ftnchek.dirs @@ -0,0 +1,6 @@ +usr/bin +usr/share/man/man1 +usr/lib +usr/share/doc-base +etc/emacs/site-start.d +usr/share/emacs/site-lisp --- ftnchek-3.3.1.orig/debian/ftnchek.doc-base +++ ftnchek-3.3.1/debian/ftnchek.doc-base @@ -0,0 +1,9 @@ +Document: ftnchek +Title: ftnchek manual +Author: Dr. Robert Moniot +Abstract: A HTML version of the manual for ftnchek, a lint-like static analyser for Fortran programs. +Section: Programming + +Format: HTML +Index: /usr/share/doc/ftnchek/html/index.html +Files: /usr/share/doc/ftnchek/html/* --- ftnchek-3.3.1.orig/debian/ftnchek.el +++ ftnchek-3.3.1/debian/ftnchek.el @@ -0,0 +1,7 @@ +; FIXME: this really ought to be in the conditional too... +(autoload 'ftnchek-mode "ftnchek") + +; Only load ftnchek mode if the library is still installed. +(if (locate-library "ftnchek") + (add-hook 'fortran-mode-hook 'ftnchek-mode)) + --- ftnchek-3.3.1.orig/debian/rules +++ ftnchek-3.3.1/debian/rules @@ -0,0 +1,77 @@ +#!/usr/bin/make -f +# -*- Makefile -*- +# Made with the aid of debmake, by Christoph Lameter, +# based on the sample debian/rules file for GNU hello by Ian Jackson. + +package=ftnchek +include /usr/share/dpkg/buildflags.mk + +build: build-arch build-indep +build-indep: + +build-arch: + $(checkdir) + cp config.sub debian + cp config.guess debian + cp /usr/share/misc/config.sub . + cp /usr/share/misc/config.guess . + EMACS=/bin/true AWK=/usr/bin/awk ./configure --prefix=/usr --mandir=`pwd`/debian/ftnchek/usr/share/man --disable-submode + make OPT="$(CFLAGS) $(CPPFLAGS)" LDFLAGS="$(LDFLAGS)" + make check + + touch build + +clean: + $(checkdir) + dh_clean + -rm -f build + if [ -f Makefile ]; then make distclean ; fi + -mv debian/config.guess . + -mv debian/config.sub . + -rm -f `find . -name "*~"` + -rm -f Makefile test/Makefile test/Compare.sh config.h + -rm -f dcl2inc dcl2inc.awk + +binary-indep: checkroot build + $(checkdir) +# There are no architecture-independent files to be uploaded +# generated by this package. If there were any they would be +# made here. + +binary-arch: checkroot build + dh_testdir + dh_testroot + dh_prep + dh_installdirs + + make install install-lisp prefix=`pwd`/debian/ftnchek/usr STRIP=true + cp debian/ftnchek.el debian/ftnchek/etc/emacs/site-start.d/50ftnchek.el + + dh_installdocs + dh_installexamples + dh_installchangelogs + dh_installmenu + dh_installman -pftnchek + dh_strip + dh_compress + dh_fixperms + dh_makeshlibs + dh_shlibdeps + dh_gencontrol + dh_installdeb + dh_md5sums + dh_builddeb + +define checkdir + test -f debian/rules +endef + +# Below here is fairly generic really + +binary: binary-indep binary-arch + +checkroot: + $(checkdir) + test root = "`whoami`" + +.PHONY: binary binary-arch binary-indep clean checkroot --- ftnchek-3.3.1.orig/ftnchek.el +++ ftnchek-3.3.1/ftnchek.el @@ -73,7 +73,7 @@ ;; simplified ftnchek-current-subprogram ;; consolidated dangling parentheses :) ;; miscellaneous cleanup to permit byte-compile w/o warnings -;; v 0.8 12/10/02 oops, regexp-opt causes problems, switch to regexp-or +;; v 0.8 12/10/02 oops, regexp-opt causes problems, switch to ftncheck-regexp-op ;; v 0.7 12/4/02 Tested with emacs 21 ;; Menu-bar renamed "Ftnchek" and simplified ;; much internal cleanup and re-write @@ -332,7 +332,7 @@ ;; some useful regexps: (defun identity(x) x) -(defun regexp-or(s &optional parens) +(defun ftncheck-regexp-op(s &optional parens) "OR together a bunch of regexp's. Optional argument if t adds outer parens" (let ((rval (mapconcat 'identity s "\\|"))) (if (eq parens nil) @@ -356,13 +356,13 @@ "logical" "\\(character\\( *\\* *[0-9]+\\)?\\)" )) -(defvar ftnchek-type-regexp (regexp-or ftnchek-type-regexp-list t)) +(defvar ftnchek-type-regexp (ftncheck-regexp-op ftnchek-type-regexp-list t)) (defvar ftnchek-subprogram-end-regexp (concat ftnchek-first-six-regexp "end *$")) (defvar ftnchek-program-unit-begin-regexp (concat ftnchek-first-six-regexp - (regexp-or (list + (ftncheck-regexp-op (list (concat ftnchek-type-regexp "? *function") "subroutine" "program" @@ -401,7 +401,7 @@ (defvar ftnchek-non-executable-statement-regexp (concat ftnchek-first-six-regexp - (regexp-or ftnchek-non-executable-keyword-regexp-list t))) + (ftncheck-regexp-op ftnchek-non-executable-keyword-regexp-list t))) (defun ftnchek-program-unit-title() --- ftnchek-3.3.1.orig/ftnchek.man +++ ftnchek-3.3.1/ftnchek.man @@ -1,4 +1,4 @@ -.TH "FTNCHEK 3.3" 1L "November 2004" +.TH "FTNCHEK 3.3" 1 "November 2004" .\" ==================================================================== .\" @Troff-man-file{ .\" author = "Robert K. Moniot", --- ftnchek-3.3.1.orig/make_blockmatch.pl +++ ftnchek-3.3.1/make_blockmatch.pl @@ -119,7 +119,7 @@ of $0 is not correct for the tokdefs.h file produced using the local parser generator. Please send a copy of the tokdefs.h file, along with information identifying the operating system and the -name and version number of the parser generator (probably bison) to +name and version number of the parser generator (probably yacc) to the ftnchek maintainer listed in README. END_ERROR_MESSAGE