Debianization.
authormdw <mdw>
Wed, 26 Oct 2005 10:59:11 +0000 (10:59 +0000)
committermdw <mdw>
Wed, 26 Oct 2005 10:59:11 +0000 (10:59 +0000)
.links
Makefile.am
bascat.c
configure.in
debian/changelog [new file with mode: 0644]
debian/control [new file with mode: 0644]
debian/copyright [new file with mode: 0644]
debian/rules [new file with mode: 0755]
setup

diff --git a/.links b/.links
index a5ba102..ed8a3f9 100644 (file)
--- a/.links
+++ b/.links
@@ -1,7 +1,4 @@
 COPYING
 INSTALL
 COPYING
 INSTALL
-install-sh
 mdwopt.c
 mdwopt.h
 mdwopt.c
 mdwopt.h
-mkinstalldirs
-missing
index 9323122..482018f 100644 (file)
@@ -1,7 +1,7 @@
 ## Run `automake' on this file to generate `Makefile.in'
 ## -*-makefile-*-
 ##
 ## 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
 ##
 ##
 ## Makefile for Bascat
 ##
 ## License along with Bascat; if not, write to the Free Software Foundation,
 ## Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
 ## 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
 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
index 48e032e..7824c7d 100644 (file)
--- a/bascat.c
+++ b/bascat.c
@@ -1,6 +1,6 @@
 /* -*-c-*-
  *
 /* -*-c-*-
  *
- * $Id: bascat.c,v 1.5 1999/11/25 01:08:57 mdw Exp $
+ * $Id$
  *
  * Display BBC BASIC programs more or less anywhere
  *
  *
  * Display BBC BASIC programs more or less anywhere
  *
  * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 
  */
 
  * 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 --- */
 /*----- Header files ------------------------------------------------------*/
 
 /* --- ANSI library headers --- */
index b5b3205..17f4a72 100644 (file)
@@ -1,6 +1,6 @@
 dnl -*-fundamental-*-
 dnl
 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
 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 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)
 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
 
 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
 
 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 (file)
index 0000000..8067c9f
--- /dev/null
@@ -0,0 +1,6 @@
+bascat (1.3) unstable; urgency=low
+
+  * Debianization.
+
+ -- Mark Wooding <mdw@distorted.org.uk>  Wed, 26 Oct 2005 11:52:56 +0100
+
diff --git a/debian/control b/debian/control
new file mode 100644 (file)
index 0000000..7747517
--- /dev/null
@@ -0,0 +1,11 @@
+Source: bascat
+Section: otherosfs
+Priority: extra
+Maintainer: Mark Wooding <mdw@distorted.org.uk>
+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 (file)
index 0000000..d7b758a
--- /dev/null
@@ -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 (executable)
index 0000000..19be710
--- /dev/null
@@ -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 (executable)
--- a/setup
+++ b/setup
@@ -4,5 +4,5 @@ set -e
 mklinks
 mkaclocal
 autoconf
 mklinks
 mkaclocal
 autoconf
-automake
+automake -a
 mkdir build
 mkdir build