chiark / gitweb /
Debianization.
authormdw <mdw@ce86e22d-31e3-0310-b972-e9f3c7b8d6ce>
Sat, 11 Sep 2004 17:50:46 +0000 (17:50 +0000)
committermdw <mdw@ce86e22d-31e3-0310-b972-e9f3c7b8d6ce>
Sat, 11 Sep 2004 17:50:46 +0000 (17:50 +0000)
Makefile.am
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]
qqlib.c
quine.c
quine.h

index ac8a46ca1a70e6b116d6eb8b25c10e7a9703ddcf..fc13d43cd728a88a66778d26414f3db0a5d9a502 100644 (file)
 ## along with Quine; if not, write to the Free Software Foundation,
 ## Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
 ## 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 ---
 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
 
 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
 
 CLEANFILES = xquine yquine
 MAINTAINERCLEANFILES = qqout.c qqlout.c $(srcdir)/qqout.c $(srcdir)/qqlout.c
 
index f68396b0dc66e1858b7166f59ef93076284ccac6..d32eefeaf10533dfe2095e9d80fc188f033fc0d4 100644 (file)
@@ -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 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)
 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
 AC_ARG_PROGRAM
 AC_PROG_CC
 AC_PROG_MAKE_SET
diff --git a/debian/changelog b/debian/changelog
new file mode 100644 (file)
index 0000000..d753259
--- /dev/null
@@ -0,0 +1,5 @@
+quine (1.1.1) experimental; urgency=low
+
+  * Debianization!
+
+ -- Mark Wooding <mdw@nsict.org>  Sat, 11 Sep 2004 18:40:45 +0100
diff --git a/debian/control b/debian/control
new file mode 100644 (file)
index 0000000..8c2531e
--- /dev/null
@@ -0,0 +1,15 @@
+Source: quine
+Section: utils
+Priority: extra
+Maintainer: Mark Wooding <mdw@nsict.org>
+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 (file)
index 0000000..4fce46a
--- /dev/null
@@ -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 (executable)
index 0000000..6bdfcc3
--- /dev/null
@@ -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 f2bf0ebd7d7a8ed58d8fb87f6e1ed06e7c1e3559..34e60dafdfbea4e8292c79c63709de5ac7f52388 100644 (file)
--- a/qqlib.c
+++ b/qqlib.c
  * License.
  */
 
  * License.
  */
 
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: qqlib.c,v $
- * Revision 1.2  2000/08/01 17:41:39  mdw
- * Remove unnecessary <ctype.h> header.
- *
- * Revision 1.1.1.1  1999/04/28 19:58:07  mdw
- * Initial revision
- *
- */
-
 /*----- Header files ------------------------------------------------------*/
 
 /* --- ANSI headers --- */
 /*----- Header files ------------------------------------------------------*/
 
 /* --- ANSI headers --- */
diff --git a/quine.c b/quine.c
index 86f1e4879479a798e1c06e5f7d36412fd02c17ae..03bf45c47a46875eb27bb9c84269c9cd5619338f 100644 (file)
--- a/quine.c
+++ b/quine.c
  * 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: 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 --- */
 /*----- Header files ------------------------------------------------------*/
 
 /* --- ANSI headers --- */
diff --git a/quine.h b/quine.h
index 3a61b8ec05897923e2eadc7c3368bab1dee31d3e..df436cd3120af5a09a291e6b7fd3a4aca40e06cf 100644 (file)
--- a/quine.h
+++ b/quine.h
  * 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: quine.h,v $
- * Revision 1.1  1999/04/28 19:58:07  mdw
- * Initial revision
- *
- */
-
 #ifndef QUINE_H
 #define QUINE_H
 
 #ifndef QUINE_H
 #define QUINE_H