Remove debian/ subdir to prepare non-native package with pristine upstream tarball.

parent bad7b4fe
linuxdoc-tools README for Debian
================================
Dependencies
------------
out-of-the-box linuxdoc-tools will only provide support for
sgml2html conversion. Other conversions will need other Debian
packages be installed. Those dependencies will be pulled either
by linuxdoc-tools-text, linuxdoc-tools-info or
linuxdoc-tools-latex packages, although you can install them
by your own.
The relevant dependencies are:
sgml2txt:
* groff package
sgml2info:
* texinfo package
sgml2latex:
* texlive-latex-base | tetex-base
* texlive-base-bin | tetex-bin
* texlive-latex-recommended | tetex-extra
Handling of other DTD
---------------------
linuxdoc-tools has been designed and implemented only for linuxdoc DTD.
If you wish to convert debiandoc DTD documents, please install and use
debiandoc-sgml package. If you wish to convert docbook DTD documents,
please install and use jade (with or without sgmltools-lite).
-- Agustin Martin Domingo <[email protected]>, Thu, 31 May 2007 11:30:51 +0200
#!/bin/sh
if which makeinfo > /dev/null 2>&1; then
exec /usr/bin/linuxdoc --backend=info "[email protected]"
else
echo "Please install makeinfo to use LinuxDoc DTD SGML Info Conversion"
exit 1
fi
#!/bin/sh
if which latex > /dev/null 2>&1; then
exec /usr/bin/linuxdoc --backend=latex "[email protected]"
else
echo "Please install latex to use LinuxDoc DTD SGML LaTeX/PS/PDF Conversion"
exit 1
fi
#!/bin/sh
if which groff > /dev/null 2>&1; then
exec /usr/bin/linuxdoc --backend=txt "[email protected]"
else
echo "Please install groff to use LinuxDoc DTD SGML Text Conversion"
exit 1
fi
This diff is collapsed.
Source: linuxdoc-tools
Section: text
Priority: optional
Maintainer: Debian XML/SGML Group <[email protected]>
Uploaders: Agustin Martin Domingo <[email protected]>
Vcs-Git: git://git.debian.org/git/debian-xml-sgml/linuxdoc-tools.git
Vcs-Browser: http://git.debian.org/?p=debian-xml-sgml/linuxdoc-tools.git;a=summary
Build-Depends: debhelper (>= 7 ), perl, flex, gawk|mawk, sp|opensp,
texinfo, groff (>= 1.15.3.1),
texlive-base-bin, texlive-latex-recommended, texlive-fonts-recommended
Standards-Version: 3.9.3
Package: linuxdoc-tools
Architecture: any
Multi-Arch: foreign
Depends: ${shlibs:Depends}, ${misc:Depends}, ${perl:Depends},
sp|opensp, sgml-data, gawk|mawk
Suggests: texinfo, info-browser, groff,
texlive-latex-base|tetex-base (>= 0.9.990406),
texlive-base-bin|tetex-bin,
texlive-latex-recommended|tetex-extra,
linuxdoc-tools-text, linuxdoc-tools-latex, linuxdoc-tools-info
Provides: linuxdoc-sgml
Conflicts: linuxdoc-sgml, sgml-tools (<= 1.0.9-90)
Replaces: linuxdoc-sgml, sgml-tools,
linuxdoc-tools-text (<< 0.9.20),
linuxdoc-tools-info (<< 0.9.20),
linuxdoc-tools-latex (<< 0.9.20)
Description: convert LinuxDoc SGML source into other formats
LinuxDoc sgml is a highly configurable text format for writing
documentation, something like html only it's simpler and can be
converted to various other formats, including html for websites.
You write a LinuxDoc document using any text editor such as vim.
Then you use linuxdoc-tools to convert it to html, rtf, plain-text
(install linuxdoc-tools-text), info (install linuxdoc-tools-info),
LaTeX, dvi or postscript (install linuxdoc-tools-latex). The
sgmltools-lite package can convert LinuxDoc to DocBook format.
.
LinuxDoc can automatically create a table of contents. It's easier to
write and read than docbook since it allows one to omit most closing
tags while paragraphs are separated by just blank lines.
Package: linuxdoc-tools-text
Architecture: all
Multi-Arch: foreign
Depends: ${misc:Depends}, linuxdoc-tools, groff
Conflicts: linuxdoc-tools (<< 0.9.20)
Description: Text output facility of LinuxDoc-Tools
LinuxDoc-Tools is a SGML converter for the LinuxDoc DTD only.
This is a dependency package to provide the required dependencies
for text conversion facility of LinuxDoc-Tools.
See the description of linuxdoc-tools package for more detail.
Package: linuxdoc-tools-latex
Architecture: all
Multi-Arch: foreign
Depends: ${misc:Depends}, linuxdoc-tools,
texlive-latex-base|tetex-base,
texlive-base-bin|tetex-bin,
texlive-latex-recommended|tetex-extra
Conflicts: linuxdoc-tools (<< 0.9.20)
Description: LaTeX/PS/PDF output facility of LinuxDoc-Tools
LinuxDoc-Tools is a SGML converter for the LinuxDoc DTD only.
This is a dependency package to provide the required dependencies
for LaTeX/PS/PDF conversion facility of LinuxDoc-Tools.
See the description of linuxdoc-tools package for more detail.
Package: linuxdoc-tools-info
Architecture: all
Multi-Arch: foreign
Depends: ${misc:Depends}, linuxdoc-tools, texinfo
Conflicts: linuxdoc-tools (<< 0.9.20)
Description: Info output facility of LinuxDoc-Tools
LinuxDoc-Tools is a SGML converter for the LinuxDoc DTD only.
This is a dependency package to provide the required dependencies
for info conversion facility of LinuxDoc-Tools.
See the description of linuxdoc-tools package for more detail.
-*- coding: utf-8 -*-
This is `linuxdoc-tools', a series of tools to implement the Linux
Documentation Project HOWTO and book styles in SGML.
linuxdoc-tools package is currently maintained by Agustin Martin Domingo
<[email protected]> within the Debian XML/SGML Group
It was previously maintained by Taketoshi Sano <[email protected]>.
---------------------------------------------------------------------
linuxdoc-tools is derived from linuxdoc-SGML, originally written by
Matt Welsh and later maintained by Cees de Groot. Linuxdoc-SGML is
based on James Clark's sgmls parser, and the QWERTZ DTD by Tom
Gordon. Magnus Alvestad provided the current HTML support. For
the rest of linuxdoc-SGML,
Copyright (C) 1994-1996 Matt Welsh <[email protected]>
Copyright (C) 1996-1998 Cees de Groot <[email protected]>
Original Linuxdoc-SGML itself does not have any limitations.
Everything not having explicit additional conditions can be freely
used, modified, and redistributed, under the usual fair use clauses:
* No warranty. Use at your own risk.
* Do not pretend to have written what you did not.
Since then, lots of smaller and bigger changes resulted in a rename
to SGML-Tools (and then to SGMLtools, the hyphen caused confusion)
to indicate that it wasn't just for Linux anymore. See files
CHANGES.old-v1 and CONTRIBUTORS.old-v1 for changelog and list of
contributors to old linuxdoc-sgml and sgmltools-v1.
When sgml-tools dropped support for the linuxdoc DTD, Taketoshi Sano
<[email protected]> forked the code to linuxdoc-tools. See README file.
Changes after the fork
Copyright (C) 1999-2002 Taketoshi Sano <[email protected]>
Copyright (C) 2000 Juan Jose Amor
Copyright (C) 2007-2008 Agustin Martin Domingo <[email protected]>
For the packaging:
Copyright (C) 1995-1998 Sven Rudolph <[email protected]>
Copyright (C) 1999-2002 Taketoshi Sano <[email protected]>
Copyright (C) 2006-2008 Agustin Martin Domingo <[email protected]>
Unless conflicting with other licenses, changes by Agustin Martin
Domingo are free software: you can redistribute and/or modify them
under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version. Otherwise they honour previous
license.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
In Debian systems you can find a copy under /usr/share/common-licenses.
--
See below for more specific Copyright notices for
sgmls-1.1/LICENSE for sgmlsasp translator license.
iso-entities/COPYING for iso-entities license.
entity-map/COPYING for entity-map license.
-----------------------------------------------------------------------
This is dummy package to provide the required dependencies
for some specific facility of `linuxdoc-tools', a series of
tools to convert LinuxDoc DTD SGML source files.
The current maintainer of linuxdoc-tools is Agustin Martin Domingo
<[email protected]>, within the Debian XML/SGML Group
This dummy package was created by Taketoshi Sano <[email protected]>
Copyright (C) 1999-2002 Taketoshi Sano <[email protected]>
Original linuxdoc-SGML itself does not have any limitations, and
it can be freely used, modified, and redistributed.
Please refer the documentation of LinuxDoc-Tools for more detail.
The license of this dummy package is either GPL or XFree86, as you like.
On Debian GNU/Linux systems, the complete text of the GNU General
Public License can be found in `/usr/share/common-licenses/GPL'.
Document: linuxdoc-tools
Title: Linuxdoc-Tools User's Guide
Author: Matt Welsh, Greg Hankins, Eric S. Raymond. Updated by Taketoshi Sano.
Abstract: This document is a user's guide to the Linuxdoc-Tools formatting
system, a SGML-based system which allows you to produce a variety of output
formats. You can create plain text output (ASCII and ISO-8859-1), DVI,
PostScript, HTML, GNU info, LyX, and RTF output from a single document
source file. This guide describes Linuxdoc-Tools version 0.1.
Section: Text
Format: postscript
Files: /usr/share/doc/linuxdoc-tools/guide.ps.gz
Format: text
Files: /usr/share/doc/linuxdoc-tools/guide.txt.gz
Format: HTML
Index: /usr/share/doc/linuxdoc-tools/html/guide.html
Files: /usr/share/doc/linuxdoc-tools/html/*.html
doc/example
doc/html
doc/rtf
doc/guide*
doc/CHANGES.old-v1
doc/CONTRIBUTORS.old-v1
README
INFO-DIR-SECTION Document Preparation
START-INFO-DIR-ENTRY
* linuxdoc-sgml: (linuxdoc-sgml). Linux Documentation Project SGML tools
END-INFO-DIR-ENTRY
#!/bin/sh
set -e
case $1 in
configure)
# For info about why we do not currently use dh_installtex, see
# #600013: tex-common:
# dpkg-reconfigure doesn't work on packages calling update-texmf-config
if [ "$DPKG_RUNNING_VERSION" ]; then
# If run under dpkg control call update-texmf-config, which
# will enable appropriate triggers
if which update-texmf-config 2>&1 > /dev/null; then
update-texmf-config lsr
fi
else
# Otherwise (e.g. on reconfigure) rebuild ls-R directly.
if which mktexlsr 2>&1 > /dev/null; then
mktexlsr /usr/share/texmf
fi
fi
;;
*)
esac
#DEBHELPER#
\ No newline at end of file
#!/bin/sh
set -e
case "$1" in
remove)
# For info about why we do not currently use dh_installtex, see
# #600013: tex-common:
# dpkg-reconfigure doesn't work on packages calling update-texmf-config
if [ "$DPKG_RUNNING_VERSION" ]; then
# If run under dpkg control call update-texmf-config, which
# will enable appropriate triggers
if which update-texmf-config 2>&1 > /dev/null; then
update-texmf-config lsr
fi
else
# Otherwise (e.g. on reconfigure) rebuild ls-R directly.
if which mktexlsr 2>&1 > /dev/null; then
mktexlsr /usr/share/texmf
fi
fi
;;
*)
esac
#DEBHELPER#
lib/linuxdoc-tools.catalog /usr/share/linuxdoc-tools/linuxdoc-tools.catalog
#!/usr/bin/make -f
#
# Rules makefile for linuxdoc-tools package
#
# Copyright (C) 2007-2008 Agustin Martin <agmartin@debian.org>
#
# Based on debhelper examples by Joey Hess and former Debian/rules
# by Taketoshi Sano and Sven Rudolph
# --------------------------------------------------------------
SHELL = /bin/bash
package = linuxdoc-tools
copyright = debian/$(package).copyright
DESTDIR = $(CURDIR)/debian/tmp
# -- For FHS transition
MANDIR = /usr/share/man
# Get default build flags
CFLAGS = $(shell dpkg-buildflags --get CFLAGS)
CPPFLAGS = $(shell dpkg-buildflags --get CPPFLAGS)
LDFLAGS = $(shell dpkg-buildflags --get LDFLAGS)
export CFLAGS LDFLAGS
# -- Create linuxdoc-tools copyright file by merging some files
define build_ldt_copyright
cat debian/copyright > $(copyright)
echo -e '\n------------------\n The linuxdoc-tools license\n' >> $(copyright)
cat COPYING >> $(copyright)
echo -e '\n------------------\n The sgmls license\n' >> $(copyright)
cat sgmls-1.1/LICENSE >> $(copyright)
# sp is no longer included.
# echo -e '\n------------------\n The sp license\n' >>\
# debian/$(package).copyright
# cat sp/COPYING >> debian/$(package).copyright
echo -e '\n------------------\n The iso-entities license\n' >> $(copyright)
cat iso-entities/COPYING >> $(copyright)
echo -e '\n------------------\n The entity-map license\n' >> $(copyright)
cat entity-map/COPYING >> $(copyright)
endef
# The next section may have to be extensively modified
build: build-arch build-indep
build-arch: build-stamp
build-indep: build-stamp
build-stamp:
dh_testdir
./configure --prefix=/usr \
--mandir=$(MANDIR) \
--with-installed-nsgmls \
--with-auxbindir=/usr/lib/linuxdoc-tools \
--with-perllibdir=/usr/share/perl5 \
--with-texdir=/usr/share/texmf/tex/latex/misc
$(MAKE) CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS)" LDFLAGS="$(LDFLAGS)"
$(build_ldt_copyright)
for i in text latex info; do \
ln -sf copyright.dependencies \
debian/$(package)-$$i.copyright; \
done
touch build-stamp
clean:
dh_testdir
dh_testroot
rm -f build-stamp
rm -f debian/$(package)-{text,latex,info}.copyright
rm -f debian/$(package).copyright
rm -f linuxdoc.new LinuxDocTools.pm.new doc/linuxdoc-sgml.info
[ ! -f Makefile ] || $(MAKE) distclean
dh_clean
install: build
dh_testdir
dh_testroot
dh_prep
dh_installdirs
# --- do 'make install'
$(MAKE) DESTDIR=$(DESTDIR) install
# --- Install shell scripts for sgml2{txt,latex,info}
for i in txt latex info; do \
install -m 755 debian/addition/sgml2$$i \
$(DESTDIR)/usr/bin/sgml2$$i; \
done
# ---
cat debian/linuxdoc-tools.info-base doc/guide.info > doc/linuxdoc-sgml.info
dh_installinfo doc/linuxdoc-sgml.info
# ---
mkdir -p $(DESTDIR)/usr/share/sgml
( cd $(DESTDIR)/usr/share/linuxdoc-tools && mv dtd ../sgml )
binary-indep:
dh_testdir -i
dh_testroot -i
dh_installchangelogs -i
dh_installdocs -i
dh_installman -i
dh_link -i
dh_strip -i
dh_compress -i
dh_fixperms -i
dh_installdeb -i
dh_shlibdeps -i
dh_gencontrol -i
dh_md5sums -i
dh_builddeb -i
binary-arch: build install
dh_testdir -a
dh_testroot -a
dh_installchangelogs -a
# - Docs are installed by dh_installdocs
# - We use entities from sgml-data package
dh_install -a --sourcedir=$(DESTDIR) -Xusr/share/doc -Xusr/share/sgml/iso-entities-8879.1986 '*'
dh_installdocs -a -Xdoc/guide.info
dh_installman -a
dh_link -a usr/share/info/linuxdoc-sgml.info.gz \
usr/share/doc/linuxdoc-tools/linuxdoc-sgml.info.gz
dh_link -a usr/share/sgml/dtd usr/share/linuxdoc-tools/dtd
dh_installcatalogs -a
dh_perl -a
dh_strip -a
dh_compress -a
dh_fixperms -a
dh_installdeb -a
dh_shlibdeps -a
dh_gencontrol -a
dh_md5sums -a
dh_builddeb -a
# Below here is fairly generic really
binary: binary-indep binary-arch
.PHONY: binary binary-arch binary-indep clean
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment