docbook-utils/db2html

41 lines
737 B
Plaintext
Raw Normal View History

auto-import changelog data from docbook-utils-0.6-13.src.rpm * Sat Mar 24 2001 Tim Waugh <twaugh@redhat.com> - Fix man pages (bug #32820). * Mon Mar 12 2001 Tim Waugh <twaugh@redhat.com> - Fix argument parsing in docbook2xxx (bug #31518). - Fix argument passing in db2html (bug #31520). - Fix pdf generation (bug #31524). * Fri Feb 23 2001 Tim Waugh <twaugh@redhat.com> - Allow the use of custom backends and frontends (bug #29067). * Fri Feb 16 2001 Tim Waugh <twaugh@redhat.com> - Use gdp-both.dsl as the default stylesheet. * Mon Feb 12 2001 Tim Waugh <twaugh@redhat.com> - REALLY only create output directory for db2html (duh). - Handle filenames with dots in properly. * Sun Feb 11 2001 Tim Waugh <twaugh@redhat.com> - Only create output directory for db2html (bug #27092). (docbook2html does not create an output directory in the upstream version, but the compatibility script has been made to do so.) * Mon Jan 22 2001 Tim Waugh <twaugh@redhat.com> - Move the jadetex requirement to the -pdf subpackage. * Tue Jan 16 2001 Tim Waugh <twaugh@redhat.com> - Put output files in new directory instead of current directory. * Mon Jan 15 2001 Tim Waugh <twaugh@redhat.com> - Don't play so many macro games. - Be sure to own utils directory. * Fri Jan 12 2001 Tim Waugh <twaugh@redhat.com> - Split off docbook2pdf into subpackage for dependency reasons. * Mon Jan 08 2001 Tim Waugh <twaugh@redhat.com> - Change group. - Use %{_mandir} and %{_prefix}. - db2* symlinks. - Obsolete stylesheets (and -db2pdf). - Change Copyright: to License:. - Remove Packager: line. - Reword description. * Mon Jan 08 2001 Tim Waugh <twaugh@redhat.com> - Based on Eric Bischoff's new-trials packages.
2004-09-09 04:19:11 +00:00
#! /bin/sh
ADMON_GRAPHICS=/usr/share/sgml/docbook/dsssl-stylesheets/images/*.gif
auto-import changelog data from docbook-utils-0.6-13.src.rpm * Sat Mar 24 2001 Tim Waugh <twaugh@redhat.com> - Fix man pages (bug #32820). * Mon Mar 12 2001 Tim Waugh <twaugh@redhat.com> - Fix argument parsing in docbook2xxx (bug #31518). - Fix argument passing in db2html (bug #31520). - Fix pdf generation (bug #31524). * Fri Feb 23 2001 Tim Waugh <twaugh@redhat.com> - Allow the use of custom backends and frontends (bug #29067). * Fri Feb 16 2001 Tim Waugh <twaugh@redhat.com> - Use gdp-both.dsl as the default stylesheet. * Mon Feb 12 2001 Tim Waugh <twaugh@redhat.com> - REALLY only create output directory for db2html (duh). - Handle filenames with dots in properly. * Sun Feb 11 2001 Tim Waugh <twaugh@redhat.com> - Only create output directory for db2html (bug #27092). (docbook2html does not create an output directory in the upstream version, but the compatibility script has been made to do so.) * Mon Jan 22 2001 Tim Waugh <twaugh@redhat.com> - Move the jadetex requirement to the -pdf subpackage. * Tue Jan 16 2001 Tim Waugh <twaugh@redhat.com> - Put output files in new directory instead of current directory. * Mon Jan 15 2001 Tim Waugh <twaugh@redhat.com> - Don't play so many macro games. - Be sure to own utils directory. * Fri Jan 12 2001 Tim Waugh <twaugh@redhat.com> - Split off docbook2pdf into subpackage for dependency reasons. * Mon Jan 08 2001 Tim Waugh <twaugh@redhat.com> - Change group. - Use %{_mandir} and %{_prefix}. - db2* symlinks. - Obsolete stylesheets (and -db2pdf). - Change Copyright: to License:. - Remove Packager: line. - Reword description. * Mon Jan 08 2001 Tim Waugh <twaugh@redhat.com> - Based on Eric Bischoff's new-trials packages.
2004-09-09 04:19:11 +00:00
output=docbook2html-dir
skip=0
dbdircleanup=1
for arg in "$@"
auto-import changelog data from docbook-utils-0.6-13.src.rpm * Sat Mar 24 2001 Tim Waugh <twaugh@redhat.com> - Fix man pages (bug #32820). * Mon Mar 12 2001 Tim Waugh <twaugh@redhat.com> - Fix argument parsing in docbook2xxx (bug #31518). - Fix argument passing in db2html (bug #31520). - Fix pdf generation (bug #31524). * Fri Feb 23 2001 Tim Waugh <twaugh@redhat.com> - Allow the use of custom backends and frontends (bug #29067). * Fri Feb 16 2001 Tim Waugh <twaugh@redhat.com> - Use gdp-both.dsl as the default stylesheet. * Mon Feb 12 2001 Tim Waugh <twaugh@redhat.com> - REALLY only create output directory for db2html (duh). - Handle filenames with dots in properly. * Sun Feb 11 2001 Tim Waugh <twaugh@redhat.com> - Only create output directory for db2html (bug #27092). (docbook2html does not create an output directory in the upstream version, but the compatibility script has been made to do so.) * Mon Jan 22 2001 Tim Waugh <twaugh@redhat.com> - Move the jadetex requirement to the -pdf subpackage. * Tue Jan 16 2001 Tim Waugh <twaugh@redhat.com> - Put output files in new directory instead of current directory. * Mon Jan 15 2001 Tim Waugh <twaugh@redhat.com> - Don't play so many macro games. - Be sure to own utils directory. * Fri Jan 12 2001 Tim Waugh <twaugh@redhat.com> - Split off docbook2pdf into subpackage for dependency reasons. * Mon Jan 08 2001 Tim Waugh <twaugh@redhat.com> - Change group. - Use %{_mandir} and %{_prefix}. - db2* symlinks. - Obsolete stylesheets (and -db2pdf). - Change Copyright: to License:. - Remove Packager: line. - Reword description. * Mon Jan 08 2001 Tim Waugh <twaugh@redhat.com> - Based on Eric Bischoff's new-trials packages.
2004-09-09 04:19:11 +00:00
do
if [ $skip -gt 0 ]
then
skip=$(($skip - 1))
continue
fi
case $arg in
-h|--help|-v|--version) break
;;
-n|--nostd|-u|--nochunks) ;;
-*) skip=1
;;
*) output="$(echo $arg | sed 's,\.sgml$,,;s,\.sgm$,,;s,\.xml,,')"
auto-import changelog data from docbook-utils-0.6-13.src.rpm * Sat Mar 24 2001 Tim Waugh <twaugh@redhat.com> - Fix man pages (bug #32820). * Mon Mar 12 2001 Tim Waugh <twaugh@redhat.com> - Fix argument parsing in docbook2xxx (bug #31518). - Fix argument passing in db2html (bug #31520). - Fix pdf generation (bug #31524). * Fri Feb 23 2001 Tim Waugh <twaugh@redhat.com> - Allow the use of custom backends and frontends (bug #29067). * Fri Feb 16 2001 Tim Waugh <twaugh@redhat.com> - Use gdp-both.dsl as the default stylesheet. * Mon Feb 12 2001 Tim Waugh <twaugh@redhat.com> - REALLY only create output directory for db2html (duh). - Handle filenames with dots in properly. * Sun Feb 11 2001 Tim Waugh <twaugh@redhat.com> - Only create output directory for db2html (bug #27092). (docbook2html does not create an output directory in the upstream version, but the compatibility script has been made to do so.) * Mon Jan 22 2001 Tim Waugh <twaugh@redhat.com> - Move the jadetex requirement to the -pdf subpackage. * Tue Jan 16 2001 Tim Waugh <twaugh@redhat.com> - Put output files in new directory instead of current directory. * Mon Jan 15 2001 Tim Waugh <twaugh@redhat.com> - Don't play so many macro games. - Be sure to own utils directory. * Fri Jan 12 2001 Tim Waugh <twaugh@redhat.com> - Split off docbook2pdf into subpackage for dependency reasons. * Mon Jan 08 2001 Tim Waugh <twaugh@redhat.com> - Change group. - Use %{_mandir} and %{_prefix}. - db2* symlinks. - Obsolete stylesheets (and -db2pdf). - Change Copyright: to License:. - Remove Packager: line. - Reword description. * Mon Jan 08 2001 Tim Waugh <twaugh@redhat.com> - Based on Eric Bischoff's new-trials packages.
2004-09-09 04:19:11 +00:00
echo "output is $output"
dbdircleanup=0
auto-import changelog data from docbook-utils-0.6-13.src.rpm * Sat Mar 24 2001 Tim Waugh <twaugh@redhat.com> - Fix man pages (bug #32820). * Mon Mar 12 2001 Tim Waugh <twaugh@redhat.com> - Fix argument parsing in docbook2xxx (bug #31518). - Fix argument passing in db2html (bug #31520). - Fix pdf generation (bug #31524). * Fri Feb 23 2001 Tim Waugh <twaugh@redhat.com> - Allow the use of custom backends and frontends (bug #29067). * Fri Feb 16 2001 Tim Waugh <twaugh@redhat.com> - Use gdp-both.dsl as the default stylesheet. * Mon Feb 12 2001 Tim Waugh <twaugh@redhat.com> - REALLY only create output directory for db2html (duh). - Handle filenames with dots in properly. * Sun Feb 11 2001 Tim Waugh <twaugh@redhat.com> - Only create output directory for db2html (bug #27092). (docbook2html does not create an output directory in the upstream version, but the compatibility script has been made to do so.) * Mon Jan 22 2001 Tim Waugh <twaugh@redhat.com> - Move the jadetex requirement to the -pdf subpackage. * Tue Jan 16 2001 Tim Waugh <twaugh@redhat.com> - Put output files in new directory instead of current directory. * Mon Jan 15 2001 Tim Waugh <twaugh@redhat.com> - Don't play so many macro games. - Be sure to own utils directory. * Fri Jan 12 2001 Tim Waugh <twaugh@redhat.com> - Split off docbook2pdf into subpackage for dependency reasons. * Mon Jan 08 2001 Tim Waugh <twaugh@redhat.com> - Change group. - Use %{_mandir} and %{_prefix}. - db2* symlinks. - Obsolete stylesheets (and -db2pdf). - Change Copyright: to License:. - Remove Packager: line. - Reword description. * Mon Jan 08 2001 Tim Waugh <twaugh@redhat.com> - Based on Eric Bischoff's new-trials packages.
2004-09-09 04:19:11 +00:00
break
;;
esac
done
if [ -d ${output} ]
then
rm -rf ${output}.junk
mv ${output} ${output}.junk
fi
mkdir ${output}
mkdir ${output}/stylesheet-images
cp ${ADMON_GRAPHICS} ${output}/stylesheet-images
auto-import changelog data from docbook-utils-0.6-13.src.rpm * Sat Mar 24 2001 Tim Waugh <twaugh@redhat.com> - Fix man pages (bug #32820). * Mon Mar 12 2001 Tim Waugh <twaugh@redhat.com> - Fix argument parsing in docbook2xxx (bug #31518). - Fix argument passing in db2html (bug #31520). - Fix pdf generation (bug #31524). * Fri Feb 23 2001 Tim Waugh <twaugh@redhat.com> - Allow the use of custom backends and frontends (bug #29067). * Fri Feb 16 2001 Tim Waugh <twaugh@redhat.com> - Use gdp-both.dsl as the default stylesheet. * Mon Feb 12 2001 Tim Waugh <twaugh@redhat.com> - REALLY only create output directory for db2html (duh). - Handle filenames with dots in properly. * Sun Feb 11 2001 Tim Waugh <twaugh@redhat.com> - Only create output directory for db2html (bug #27092). (docbook2html does not create an output directory in the upstream version, but the compatibility script has been made to do so.) * Mon Jan 22 2001 Tim Waugh <twaugh@redhat.com> - Move the jadetex requirement to the -pdf subpackage. * Tue Jan 16 2001 Tim Waugh <twaugh@redhat.com> - Put output files in new directory instead of current directory. * Mon Jan 15 2001 Tim Waugh <twaugh@redhat.com> - Don't play so many macro games. - Be sure to own utils directory. * Fri Jan 12 2001 Tim Waugh <twaugh@redhat.com> - Split off docbook2pdf into subpackage for dependency reasons. * Mon Jan 08 2001 Tim Waugh <twaugh@redhat.com> - Change group. - Use %{_mandir} and %{_prefix}. - db2* symlinks. - Obsolete stylesheets (and -db2pdf). - Change Copyright: to License:. - Remove Packager: line. - Reword description. * Mon Jan 08 2001 Tim Waugh <twaugh@redhat.com> - Based on Eric Bischoff's new-trials packages.
2004-09-09 04:19:11 +00:00
jw -f docbook -b html -o ${output} "$@"
if [ ${dbdircleanup} -eq 1 ];
then
rm -rf ${output}
fi