From 9c45d9ad13fdf439d44d7443ae75da15ea0223ed Mon Sep 17 00:00:00 2001 From: Sam Varshavchik Date: Mon, 19 Aug 2013 16:39:41 -0400 Subject: Initial checkin Imported from subversion report, converted to git. Updated all paths in scripts and makefiles, reflecting the new directory hierarchy. --- docbook/fixhtml.xsl | 26 +++++++++++++++++++++++++ docbook/manpage.css | 10 ++++++++++ docbook/manpages.xsl | 55 ++++++++++++++++++++++++++++++++++++++++++++++++++++ docbook/sgml2html | 20 +++++++++++++++++++ docbook/sgml2man | 29 +++++++++++++++++++++++++++ 5 files changed, 140 insertions(+) create mode 100644 docbook/fixhtml.xsl create mode 100644 docbook/manpage.css create mode 100644 docbook/manpages.xsl create mode 100755 docbook/sgml2html create mode 100755 docbook/sgml2man (limited to 'docbook') diff --git a/docbook/fixhtml.xsl b/docbook/fixhtml.xsl new file mode 100644 index 0000000..6089af4 --- /dev/null +++ b/docbook/fixhtml.xsl @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docbook/manpage.css b/docbook/manpage.css new file mode 100644 index 0000000..8936c25 --- /dev/null +++ b/docbook/manpage.css @@ -0,0 +1,10 @@ +body { margin-top: 0px; margin-bottom: 0px; background-image: url(bg.gif); font-family: times new roman,serif; color: #000000;} + +a { color: #0000FF; } +a:visited { color: #880000; } +a:hover { color: #000000 } + +h1 { font-family: arial,helvetica,sans serif; font-size: 200% } +h2 { font-family: arial,helvetica,sans serif; font-size: 150% } + +ul li { padding-top: 5px; } diff --git a/docbook/manpages.xsl b/docbook/manpages.xsl new file mode 100644 index 0000000..3d378d4 --- /dev/null +++ b/docbook/manpages.xsl @@ -0,0 +1,55 @@ + + + + + + + + + + +ansi + + + + + + + + + + + + + + + + + + + + + + +Copyright 1998 - 2009 Double Precision, Inc. See COPYING for distribution +information. + + + + + + + + + + + + + + + + + + diff --git a/docbook/sgml2html b/docbook/sgml2html new file mode 100755 index 0000000..6040700 --- /dev/null +++ b/docbook/sgml2html @@ -0,0 +1,20 @@ +#!/bin/sh +# +# Copyright 2001-2002 Double Precision, Inc. See COPYING for +# distribution information. + +srcfile="$1" +dstfile="$2" + +if test ! -f $srcfile +then + echo "$srcfile: not found" >&2 + exit 1 +fi + +rm -rf $dstfile.tmp +mkdir $dstfile.tmp +xsltproc -o $dstfile.tmp/ `dirname $0`/manpages.xsl $srcfile || exit 1 +xsltproc `dirname $0`/fixhtml.xsl $dstfile.tmp/* >$dstfile.tmp2 || exit 1 +rm -rf $dstfile.tmp +mv $dstfile.tmp2 $dstfile || exit 1 diff --git a/docbook/sgml2man b/docbook/sgml2man new file mode 100755 index 0000000..a7f71e2 --- /dev/null +++ b/docbook/sgml2man @@ -0,0 +1,29 @@ +#!/bin/sh +# +# Copyright 2001-2002 Double Precision, Inc. See COPYING for +# distribution information. + +srcfile="$1" +dstfile="$2" + +if test ! -f $srcfile +then + echo "$srcfile: not found" >&2 + exit 1 +fi + +rm -rf $dstfile.tmpdir +mkdir -p $dstfile.tmpdir +xsltproc --nonet -o $dstfile.tmpdir/ /usr/share/sgml/docbook/xsl-stylesheets/manpages/docbook.xsl $srcfile + +for f in $dstfile.tmpdir/* +do + sed -n '1p' <$f >$dstfile.tmp + sed -n '20,$d;/