From ab284d11a2008e7e4c765eb8f46d7f72af740ff5 Mon Sep 17 00:00:00 2001 Message-Id: From: Mark Wooding Date: Sat, 11 Sep 2004 17:50:46 +0000 Subject: [PATCH 1/1] Debianization. Organization: Straylight/Edgeware From: mdw --- Makefile.am | 11 +++-------- configure.in | 9 +-------- debian/changelog | 5 +++++ debian/control | 15 +++++++++++++++ debian/copyright | 35 ++++++++++++++++++++++++++++++++++ debian/rules | 49 ++++++++++++++++++++++++++++++++++++++++++++++++ qqlib.c | 11 ----------- quine.c | 11 ----------- quine.h | 8 -------- 9 files changed, 108 insertions(+), 46 deletions(-) create mode 100644 debian/changelog create mode 100644 debian/control create mode 100644 debian/copyright create mode 100755 debian/rules diff --git a/Makefile.am b/Makefile.am index ac8a46c..fc13d43 100644 --- a/Makefile.am +++ b/Makefile.am @@ -26,13 +26,6 @@ ## along with Quine; 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 1999/04/28 19:58:07 mdw -## Initial revision -## - AUTOMAKE_OPTIONS = foreign ## --- What needs installing --- @@ -45,7 +38,9 @@ include_HEADERS = quine.h quine_SOURCES = quine.c qqout.c mdwopt.c quine.h mdwopt.h ansicquine_SOURCES = ansicquine.c -EXTRA_DIST = qqlib.c qqout.c qqlout.c rexxquine.exec bournequine +EXTRA_DIST = \ + qqlib.c qqout.c qqlout.c rexxquine.exec bournequine \ + debian/control debian/changelog debian/rules debian/copyright CLEANFILES = xquine yquine MAINTAINERCLEANFILES = qqout.c qqlout.c $(srcdir)/qqout.c $(srcdir)/qqlout.c diff --git a/configure.in b/configure.in index f68396b..d32eefe 100644 --- a/configure.in +++ b/configure.in @@ -25,15 +25,8 @@ dnl You should have received a copy of the GNU General Public License dnl along with Quine; 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.1 1999/04/28 19:58:07 mdw -dnl Initial revision -dnl - AC_INIT(quine.c) -AM_INIT_AUTOMAKE(quine, 1.1.0) +AM_INIT_AUTOMAKE(quine, 1.1.1) AC_ARG_PROGRAM AC_PROG_CC AC_PROG_MAKE_SET diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..d753259 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +quine (1.1.1) experimental; urgency=low + + * Debianization! + + -- Mark Wooding Sat, 11 Sep 2004 18:40:45 +0100 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..8c2531e --- /dev/null +++ b/debian/control @@ -0,0 +1,15 @@ +Source: quine +Section: utils +Priority: extra +Maintainer: Mark Wooding +Standards-Version: 3.1.1 + +Package: quine +Architecture: any +Depends: ${shlibs:Depends} +Description: A (rather pointless) kit for turning C programs into quines. + A `quine' is a program which prints its own source code. This package + provides a tool, `quine', which does the tedious work of making + arbitrary C programs into quines. It can print its own source code, + and dump a working source tree. + diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..4fce46a --- /dev/null +++ b/debian/copyright @@ -0,0 +1,35 @@ +PACKAGE is copyright (c) 2003 Straylight/Edgeware. + +PACKAGE 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. + +PACKAGE 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. + +OR! + +PACKAGE is copyright (c) 2003 Straylight/Edgeware + +PACKAGE is free software; you can redistribute it and/or modify it under +the terms of the GNU Library General Public License as published by the +Free Software Foundation; either version 2 of the License, or (at your +option) any later version. + +PACKAGE 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 Library General Public +License for more details. + +You should have a copy of the GNU Library General Public License in +/usr/share/common-licenses/LGPL-2; 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..6bdfcc3 --- /dev/null +++ b/debian/rules @@ -0,0 +1,49 @@ +#! /usr/bin/make -f + +export DH_COMPAT = 4 + +build: + rm -rf build deb-build + mkdir deb-build + cd deb-build; ../configure --prefix=/usr + 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/quine + install -d -m 755 debian/quine/usr/share/doc/examples + install -m 755 bournequine debian/quine/usr/share/doc/examples + install -m 644 ansicquine.c rexxquine.exec \ + debian/quine/usr/share/doc/examples + +binary-indep: + +binary-arch: install + dh_testdir -a + dh_testroot -a + dh_compress -a + dh_installdocs -a README + 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/qqlib.c b/qqlib.c index f2bf0eb..34e60da 100644 --- a/qqlib.c +++ b/qqlib.c @@ -31,17 +31,6 @@ * License. */ -/*----- Revision history --------------------------------------------------* - * - * $Log: qqlib.c,v $ - * Revision 1.2 2000/08/01 17:41:39 mdw - * Remove unnecessary header. - * - * Revision 1.1.1.1 1999/04/28 19:58:07 mdw - * Initial revision - * - */ - /*----- Header files ------------------------------------------------------*/ /* --- ANSI headers --- */ diff --git a/quine.c b/quine.c index 86f1e48..03bf45c 100644 --- a/quine.c +++ b/quine.c @@ -26,17 +26,6 @@ * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -/*----- Revision history --------------------------------------------------* - * - * $Log: quine.c,v $ - * Revision 1.2 1999/05/19 21:11:15 mdw - * Track gratuitous change to mdwopt interface. - * - * Revision 1.1.1.1 1999/04/28 19:58:07 mdw - * Initial revision - * - */ - /*----- Header files ------------------------------------------------------*/ /* --- ANSI headers --- */ diff --git a/quine.h b/quine.h index 3a61b8e..df436cd 100644 --- a/quine.h +++ b/quine.h @@ -26,14 +26,6 @@ * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -/*----- Revision history --------------------------------------------------* - * - * $Log: quine.h,v $ - * Revision 1.1 1999/04/28 19:58:07 mdw - * Initial revision - * - */ - #ifndef QUINE_H #define QUINE_H -- [mdw]