mirror of https://github.com/MidnightCommander/mc
* doc-gnome/C/mkhtml: New file. Create HTML files from gmc.sgml.
* doc-gnome/C/Makefile.am: Don't handle *.css - there are none with DocBook 4.1. Never use `cp' without `-f'. Use mkhtml.
This commit is contained in:
parent
f29a6f8253
commit
d00dc1fdf8
|
@ -1,5 +1,9 @@
|
|||
2001-05-19 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
* doc-gnome/C/mkhtml: New file. Create HTML files from gmc.sgml.
|
||||
* doc-gnome/C/Makefile.am: Don't handle *.css - there are none
|
||||
with DocBook 4.1. Never use `cp' without `-f'. Use mkhtml.
|
||||
|
||||
* doc-gnome/C/gmc.sgml: Use DTD DocBook V4.1. Fix duplicate
|
||||
index entry "Moving files".
|
||||
|
||||
|
|
|
@ -4,6 +4,8 @@ gmc_helpdir = $(datadir)/gnome/help/gmc/C
|
|||
|
||||
gmc_help_DATA = index.html topic.dat
|
||||
|
||||
noinst_SCRIPTS = mkhtml
|
||||
|
||||
SGML_FILES = gmc.sgml
|
||||
|
||||
EXTRA_DIST = topic.dat $(SGML_FILES)
|
||||
|
@ -13,23 +15,18 @@ CLEANFILES = gmc.dvi gmc.ps gmc.pdf gmc.rtf
|
|||
DISTCLEANFILES = gmc.sgm
|
||||
|
||||
$(srcdir)/index.html: @MAINT@ $(SGML_FILES)
|
||||
@MAINT@ fullsrcdir=`cd $(srcdir) >/dev/null 2>&1 && pwd` && \
|
||||
@MAINT@ db2html $$fullsrcdir/gmc.sgml && \
|
||||
@MAINT@ rm -f $(srcdir)/*.html $(srcdir)/*.css && \
|
||||
@MAINT@ mv gmc/*.html gmc/*.css $(srcdir)
|
||||
@MAINT@ rm -rf gmc
|
||||
@MAINT@ cd $(srcdir) && $(SHELL) $(srcdir)/mkhtml
|
||||
|
||||
dist-hook: $(srcdir)/index.html
|
||||
cp $(srcdir)/*.html $(srcdir)/*.css $(distdir)
|
||||
cp $(srcdir)/*.html $(distdir)
|
||||
|
||||
install-data-local: $(srcdir)/index.html
|
||||
for file in $(srcdir)/*.html $(srcdir)/*.css; do \
|
||||
for file in $(srcdir)/*.html; do \
|
||||
$(INSTALL_DATA) $$file $(DESTDIR)$(gmc_helpdir) || exit 1; \
|
||||
done
|
||||
|
||||
uninstall-local: $(srcdir)/index.html
|
||||
rm -f $(DESTDIR)$(gmc_helpdir)/*.html
|
||||
rm -f $(DESTDIR)$(gmc_helpdir)/*.css
|
||||
|
||||
dvi-local: gmc.dvi
|
||||
|
||||
|
@ -41,7 +38,7 @@ dvi-local: gmc.dvi
|
|||
# maybe future versions of docbook will be more consistent.
|
||||
gmc.dvi: $(srcdir)/gmc.sgml
|
||||
mkdir tmpdvi
|
||||
cp $(srcdir)/gmc.sgml tmpdvi
|
||||
cp -f $(srcdir)/gmc.sgml tmpdvi
|
||||
db2dvi tmpdvi/gmc.sgml
|
||||
if test -f tmpdvi/gmc.dvi; then \
|
||||
mv -f tmpdvi/gmc.dvi gmc.dvi; \
|
||||
|
@ -50,7 +47,7 @@ gmc.dvi: $(srcdir)/gmc.sgml
|
|||
|
||||
gmc.rtf: $(srcdir)/gmc.sgml
|
||||
mkdir tmprtf
|
||||
cp $(srcdir)/gmc.sgml tmprtf
|
||||
cp -f $(srcdir)/gmc.sgml tmprtf
|
||||
db2rtf tmprtf/gmc.sgml
|
||||
if test -f tmprtf/gmc.rtf; then \
|
||||
mv -f tmprtf/gmc.rtf gmc.rtf; \
|
||||
|
|
|
@ -0,0 +1,32 @@
|
|||
#! /bin/sh
|
||||
|
||||
# Forget portability - this is a script for maintainers only.
|
||||
# In fact, it's only known to run on RedHat Linux 7.1.
|
||||
# HTML files are included with the distribution, so it's not a big deal.
|
||||
|
||||
# Exit on errors.
|
||||
set -e
|
||||
|
||||
# Some cleanup
|
||||
rm -rf gmc gmc.junk
|
||||
|
||||
# Complicated bootstrap process - create empty genindex.sgml first,
|
||||
# then generate it and then html files again.
|
||||
echo >genindex.sgml
|
||||
|
||||
# Java wrapper doesn't seem to have any sane way for passing extra options
|
||||
# to the jade command. It doesn't honor the environment variables either.
|
||||
# Fortunately, there is an undocumented "-l" option (perhaps intended for
|
||||
# something else).
|
||||
jw -l "-V html-index=1" -f docbook -b html -o gmc gmc.sgml
|
||||
|
||||
# collateindex.pl may not have /usr/bin/perl on the first line.
|
||||
perl /usr/bin/collateindex.pl gmc/HTML.index >genindex.sgml
|
||||
|
||||
# Now process all with the right genindex.sgml
|
||||
rm -rf gmc
|
||||
jw -f docbook -b html -o gmc gmc.sgml
|
||||
|
||||
# Move the output to the current directory
|
||||
mv gmc/* .
|
||||
rm -rf gmc
|
Loading…
Reference in New Issue