--- bison-doc-2.4.1.orig/debian/changelog +++ bison-doc-2.4.1/debian/changelog @@ -0,0 +1,24 @@ +bison-doc (1:2.4.1-1) unstable; urgency=low + + * New upstream release + * Update Standards-Version to 3.8.0.0 + * Generate HTML documentation (closes: #456321) + * Register docs with doc-base when available + + -- Chuan-kai Lin Sat, 31 Jan 2009 11:47:51 -0800 + +bison-doc (1:2.3-2) unstable; urgency=low + + * Remove duplicated copy of the GFDL (closes: #376664) + * Add watch file (same as in the bison package) + * Compress PDF documentation (closes: #376663) + + -- Chuan-kai Lin Thu, 3 Aug 2006 23:39:21 -0700 + +bison-doc (1:2.3-1) unstable; urgency=low + + * Split non-DFSG documentation from the bison package + (closes: #364868) + * Acknowledge previous NMU (closes: #325738, #307947) + + -- Chuan-kai Lin Wed, 7 Jun 2006 10:08:46 -0700 --- bison-doc-2.4.1.orig/debian/control +++ bison-doc-2.4.1/debian/control @@ -0,0 +1,14 @@ +Source: bison-doc +Section: non-free/doc +Priority: optional +Maintainer: Chuan-kai Lin +Homepage: http://www.gnu.org/software/bison/ +Standards-Version: 3.8.0.0 +Build-Depends-Indep: texinfo, texlive + +Package: bison-doc +Architecture: all +Replaces: bison (<< 2.2.dfsg-1) +Suggests: doc-base +Description: Documentation for the Bison parser generator + This package contains the PDF and Info documentation for Bison. --- bison-doc-2.4.1.orig/debian/copyright +++ bison-doc-2.4.1/debian/copyright @@ -0,0 +1,30 @@ +This is the Debian prepackaged version of the manual for GNU Bison +(version 2.3, 30 May 2006), the GNU parser generator. + +This package was put together by Chuan-kai Lin , +from sources obtained from: + +http://ftp.gnu.org/pub/gnu/bison/ + +This package is not part of Debian GNU/Linux because it uses the GFDL +and contains an invariant section (Back-Cover Text). + + +Copyright (C) 1988, 1989, 1990, 1991, 1992, 1993, 1995, 1998, 1999, +2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. + +Permission is granted to copy, distribute and/or modify this document +under the terms of the GNU Free Documentation License, Version 1.2 or +any later version published by the Free Software Foundation; with no +Invariant Sections, with the Front-Cover texts being "A GNU Manual," and +with the Back-Cover Texts as in (a) below. A copy of the license is +included in the section entitled "GNU Free Documentation License." + +(a) The FSF's Back-Cover Text is: "You have freedom to copy and modify + this GNU Manual, like GNU software. Copies published by the Free + Software Foundation raise funds for GNU development." + + +On Debian systems, the full text of the GFDL is also available at +/usr/share/common-licenses/GFDL-1.2 + --- bison-doc-2.4.1.orig/debian/postinst +++ bison-doc-2.4.1/debian/postinst @@ -0,0 +1,11 @@ +#!/bin/sh -e + +install-info --quiet \ + --section "Software development" "Software development" \ + /usr/share/info/bison.info.gz + +if which install-docs >/dev/null 2>&1; then + if [ -e /usr/share/doc-base/bison ]; then + install-docs -i /usr/share/doc-base/bison + fi +fi --- bison-doc-2.4.1.orig/debian/prerm +++ bison-doc-2.4.1/debian/prerm @@ -0,0 +1,9 @@ +#!/bin/sh -e + +install-info --quiet --remove bison + +if which install-docs >/dev/null 2>&1; then + if [ -e /usr/share/doc-base/bison ]; then + install-docs -r /usr/share/doc-base/bison + fi +fi --- bison-doc-2.4.1.orig/debian/rules +++ bison-doc-2.4.1/debian/rules @@ -0,0 +1,68 @@ +#!/usr/bin/make -f +# debian/rules file - for bison-doc +# Based on debian/rules file - for gawk-doc (3.1.5) +# Based on sample debian/rules file - for GNU Hello (1.3). +# Copyright 1994,1995 by Ian Jackson. +# Copyright 1998-2006 James Troup +# Copyright 2006 Chuan-kai Lin +# I hereby give you perpetual unlimited permission to copy, +# modify and relicense this file, provided that you do not remove +# my name from the file itself. (I assert my moral right of +# paternity under the Copyright, Designs and Patents Act 1988.) +# This file may have to be extensively modified + +PWD=`pwd` +pkg = bison-doc +install_dir=install -d -m 755 +install_file=install -m 644 +install_script=install -m 755 + +build: + +clean: + $(checkdir) + find . -name \*~ | xargs rm -vf + rm -rf debian/tmp debian/files* debian/substvars bison.* + +binary-indep: checkroot build + $(checkdir) + rm -rf debian/tmp + $(install_dir) debian/tmp/DEBIAN/ + $(install_script) debian/postinst debian/prerm debian/tmp/DEBIAN/ + + $(install_dir) debian/tmp/usr/share/info/ + $(install_file) doc/bison.info debian/tmp/usr/share/info/ + gzip -9 debian/tmp/usr/share/info/*.info + + $(install_dir) debian/tmp/usr/share/doc/$(pkg) + $(install_file) debian/copyright debian/tmp/usr/share/doc/$(pkg) + $(install_file) debian/changelog debian/tmp/usr/share/doc/$(pkg)/changelog.Debian + find $(PWD)/debian/tmp/usr/share/doc/$(pkg)/ -maxdepth 1 -type f ! -name copyright | xargs gzip -9 + + texi2pdf -b -o debian/tmp/usr/share/doc/$(pkg)/bison.pdf doc/bison.texinfo + gzip -9 debian/tmp/usr/share/doc/$(pkg)/bison.pdf + + $(install_dir) debian/tmp/usr/share/doc-base + $(install_file) debian/docentry debian/tmp/usr/share/doc-base/bison + makeinfo --html -o debian/tmp/usr/share/doc/$(pkg)/html doc/bison.texinfo + + dpkg-gencontrol -isp + chown -R root.root debian/tmp + chmod -R go=rX debian/tmp + dpkg --build debian/tmp .. + +binary-arch: + +define checkdir + test -f doc/bison.info -a -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 patch unpatch --- bison-doc-2.4.1.orig/debian/watch +++ bison-doc-2.4.1/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://ftp.gnu.org/gnu/bison/bison-(.+)\.tar\.gz --- bison-doc-2.4.1.orig/debian/docentry +++ bison-doc-2.4.1/debian/docentry @@ -0,0 +1,16 @@ +Document: bison +Title: Bison: A YACC-Compatible Parser Generator +Author: various +Abstract: Bison is a general-purpose parser generator that converts a + grammar description for an LALR(1) context-free grammar into a C + program to parse that grammar. Once you are proficient with Bison, you + may use it to develop a wide range of language parsers, from those used + in simple desk calculators to complex programming languages. +Section: Programming + +Format: HTML +Index: /usr/share/doc/bison-doc/html/index.html +Files: /usr/share/doc/bison-doc/html/*.html + +Format: PDF +Files: /usr/share/doc/bison-doc/bison.pdf.gz