From 0188045633b3a8d9ae41825bf55a83b05423acdf Mon Sep 17 00:00:00 2001 From: mdw Date: Wed, 26 Oct 2005 10:59:11 +0000 Subject: [PATCH] Debianization. --- .links | 3 --- Makefile.am | 14 +++----------- bascat.c | 25 +------------------------ configure.in | 20 +++----------------- debian/changelog | 6 ++++++ debian/control | 11 +++++++++++ debian/copyright | 16 ++++++++++++++++ debian/rules | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ setup | 2 +- 9 files changed, 89 insertions(+), 56 deletions(-) create mode 100644 debian/changelog create mode 100644 debian/control create mode 100644 debian/copyright create mode 100755 debian/rules diff --git a/.links b/.links index a5ba102..ed8a3f9 100644 --- a/.links +++ b/.links @@ -1,7 +1,4 @@ COPYING INSTALL -install-sh mdwopt.c mdwopt.h -mkinstalldirs -missing diff --git a/Makefile.am b/Makefile.am index 9323122..482018f 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,7 +1,7 @@ ## Run `automake' on this file to generate `Makefile.in' ## -*-makefile-*- ## -## $Id: Makefile.am,v 1.1 1998/03/16 15:21:36 mdw Exp $ +## $Id$ ## ## Makefile for Bascat ## @@ -26,15 +26,7 @@ ## License along with Bascat; if not, write to the Free Software Foundation, ## Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -##----- Revision history ---------------------------------------------------- -## -## $Log: Makefile.am,v $ -## Revision 1.1 1998/03/16 15:21:36 mdw -## Files placed under CVS control. -## -## Revision 1.1 1997/07/23 01:18:30 mdw -## Initial revision -## - bin_PROGRAMS = bascat bascat_SOURCES = bascat.c mdwopt.c mdwopt.h + +EXTRA_DIST = debian/rules debian/changelog debian/control debian/copyright \ No newline at end of file diff --git a/bascat.c b/bascat.c index 48e032e..7824c7d 100644 --- a/bascat.c +++ b/bascat.c @@ -1,6 +1,6 @@ /* -*-c-*- * - * $Id: bascat.c,v 1.5 1999/11/25 01:08:57 mdw Exp $ + * $Id$ * * Display BBC BASIC programs more or less anywhere * @@ -26,29 +26,6 @@ * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -/*----- Revision history --------------------------------------------------* - * - * $Log: bascat.c,v $ - * Revision 1.5 1999/11/25 01:08:57 mdw - * Fix decoding of line numbers. - * - * Revision 1.4 1999/10/28 10:42:23 mdw - * More minor twiddling. - * - * Revision 1.3 1999/10/28 10:18:17 mdw - * Minor name changes for new coding standards. - * - * Revision 1.2 1998/06/26 11:29:28 mdw - * Added support for line-numbers. - * - * Revision 1.1 1998/03/16 15:21:37 mdw - * Files placed under CVS control. - * - * Revision 1.1 1997/07/23 01:19:33 mdw - * Initial revision - * - */ - /*----- Header files ------------------------------------------------------*/ /* --- ANSI library headers --- */ diff --git a/configure.in b/configure.in index b5b3205..17f4a72 100644 --- a/configure.in +++ b/configure.in @@ -1,6 +1,6 @@ dnl -*-fundamental-*- dnl -dnl $Id: configure.in,v 1.2 1999/10/28 10:10:39 mdw Exp $ +dnl $Id$ dnl dnl Source for auto configuration for `Bascat' dnl @@ -25,27 +25,13 @@ dnl You should have received a copy of the GNU General Public License dnl along with Bascat; if not, write to the Free Software Foundation, dnl Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -dnl----- Revision history --------------------------------------------------- -dnl -dnl $Log: configure.in,v $ -dnl Revision 1.2 1999/10/28 10:10:39 mdw -dnl New project standards. -dnl -dnl Revision 1.1 1998/03/16 15:21:37 mdw -dnl Files placed under CVS control. -dnl -dnl Revision 1.1 1997/07/23 01:18:47 mdw -dnl Initial revision -dnl - AC_INIT(bascat.c) -AM_INIT_AUTOMAKE(bascat, 1.2pre2) +AM_INIT_AUTOMAKE(bascat, 1.3) -AC_ARG_PROGRAM AC_PROG_CC AC_PROG_INSTALL -mdw_GCC_FLAGS(-pedantic -Wall -W -Wtraditional -Wpointer-arith -Wcast-align) +mdw_GCC_FLAGS mdw_CHECK_MANYLIBS(tgetent, termcap ncurses, [AC_DEFINE(HAVE_LIBTERMCAP, 1)]) mdw_OPT_NDEBUG diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..8067c9f --- /dev/null +++ b/debian/changelog @@ -0,0 +1,6 @@ +bascat (1.3) unstable; urgency=low + + * Debianization. + + -- Mark Wooding Wed, 26 Oct 2005 11:52:56 +0100 + diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..7747517 --- /dev/null +++ b/debian/control @@ -0,0 +1,11 @@ +Source: bascat +Section: otherosfs +Priority: extra +Maintainer: Mark Wooding +Standards-Version: 3.1.1 + +Package: bascat +Architecture: any +Depends: ${shlibs:Depends} +Description: View BBC BASIC programs + bascat is a program that will convert BBC BASIC files to text. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..d7b758a --- /dev/null +++ b/debian/copyright @@ -0,0 +1,16 @@ +bascat is copyright (c) 1996, 1997, 2005 Matthew Wilcox and Mark Wooding + +bascat 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 of the License, or +(at your option) any later version. + +bascat 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 a copy of the GNU General Public License in +/usr/share/common-licenses/GPL; if not, write to the Free Software +Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, +USA. diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..19be710 --- /dev/null +++ b/debian/rules @@ -0,0 +1,48 @@ +#! /usr/bin/make -f + +export DH_COMPAT = 4 + +build: + rm -rf build deb-build + mkdir deb-build + cd deb-build; ../configure --prefix=/usr --with-pager=pager + make -C deb-build + touch build + +clean: + dh_clean + rm -rf deb-build build + +install: build + dh_clean + make -C deb-build install DESTDIR=`pwd`/debian/bascat + mkdir -p debian/bascat/usr/share/doc/bascat + install -m644 ChangeLog NEWS AUTHORS README \ + debian/bascat/usr/share/doc/bascat + +binary-indep: + +binary-arch: install + dh_testdir -a + dh_testroot -a + dh_compress -a + dh_installdocs -a + dh_strip -a + dh_shlibdeps -a + dh_gencontrol -a + dh_fixperms -a + dh_installdeb -a + dh_md5sums -a + dh_builddeb -a + +binary: binary-indep binary-arch + +source: + rm -rf deb-build/*.tar.gz deb-build/=deb= + make -C deb-build dist + mkdir deb-build/=deb= + cd deb-build/=deb=; tar xvfz ../*.tar.gz + d=`pwd`; cd ..; dpkg-source -i -i'/\.svn/' -b $$d/deb-build/=deb=/* + rm -rf deb-build/=deb= + +.PHONY: binary binary-arch binary-indep clean install source diff --git a/setup b/setup index 27dde72..77f8a03 100755 --- a/setup +++ b/setup @@ -4,5 +4,5 @@ set -e mklinks mkaclocal autoconf -automake +automake -a mkdir build -- 2.11.0