mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-18 09:19:24 +03:00
* 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>
|
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
|
* doc-gnome/C/gmc.sgml: Use DTD DocBook V4.1. Fix duplicate
|
||||||
index entry "Moving files".
|
index entry "Moving files".
|
||||||
|
|
||||||
|
@ -4,6 +4,8 @@ gmc_helpdir = $(datadir)/gnome/help/gmc/C
|
|||||||
|
|
||||||
gmc_help_DATA = index.html topic.dat
|
gmc_help_DATA = index.html topic.dat
|
||||||
|
|
||||||
|
noinst_SCRIPTS = mkhtml
|
||||||
|
|
||||||
SGML_FILES = gmc.sgml
|
SGML_FILES = gmc.sgml
|
||||||
|
|
||||||
EXTRA_DIST = topic.dat $(SGML_FILES)
|
EXTRA_DIST = topic.dat $(SGML_FILES)
|
||||||
@ -13,23 +15,18 @@ CLEANFILES = gmc.dvi gmc.ps gmc.pdf gmc.rtf
|
|||||||
DISTCLEANFILES = gmc.sgm
|
DISTCLEANFILES = gmc.sgm
|
||||||
|
|
||||||
$(srcdir)/index.html: @MAINT@ $(SGML_FILES)
|
$(srcdir)/index.html: @MAINT@ $(SGML_FILES)
|
||||||
@MAINT@ fullsrcdir=`cd $(srcdir) >/dev/null 2>&1 && pwd` && \
|
@MAINT@ cd $(srcdir) && $(SHELL) $(srcdir)/mkhtml
|
||||||
@MAINT@ db2html $$fullsrcdir/gmc.sgml && \
|
|
||||||
@MAINT@ rm -f $(srcdir)/*.html $(srcdir)/*.css && \
|
|
||||||
@MAINT@ mv gmc/*.html gmc/*.css $(srcdir)
|
|
||||||
@MAINT@ rm -rf gmc
|
|
||||||
|
|
||||||
dist-hook: $(srcdir)/index.html
|
dist-hook: $(srcdir)/index.html
|
||||||
cp $(srcdir)/*.html $(srcdir)/*.css $(distdir)
|
cp $(srcdir)/*.html $(distdir)
|
||||||
|
|
||||||
install-data-local: $(srcdir)/index.html
|
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; \
|
$(INSTALL_DATA) $$file $(DESTDIR)$(gmc_helpdir) || exit 1; \
|
||||||
done
|
done
|
||||||
|
|
||||||
uninstall-local: $(srcdir)/index.html
|
uninstall-local: $(srcdir)/index.html
|
||||||
rm -f $(DESTDIR)$(gmc_helpdir)/*.html
|
rm -f $(DESTDIR)$(gmc_helpdir)/*.html
|
||||||
rm -f $(DESTDIR)$(gmc_helpdir)/*.css
|
|
||||||
|
|
||||||
dvi-local: gmc.dvi
|
dvi-local: gmc.dvi
|
||||||
|
|
||||||
@ -41,7 +38,7 @@ dvi-local: gmc.dvi
|
|||||||
# maybe future versions of docbook will be more consistent.
|
# maybe future versions of docbook will be more consistent.
|
||||||
gmc.dvi: $(srcdir)/gmc.sgml
|
gmc.dvi: $(srcdir)/gmc.sgml
|
||||||
mkdir tmpdvi
|
mkdir tmpdvi
|
||||||
cp $(srcdir)/gmc.sgml tmpdvi
|
cp -f $(srcdir)/gmc.sgml tmpdvi
|
||||||
db2dvi tmpdvi/gmc.sgml
|
db2dvi tmpdvi/gmc.sgml
|
||||||
if test -f tmpdvi/gmc.dvi; then \
|
if test -f tmpdvi/gmc.dvi; then \
|
||||||
mv -f tmpdvi/gmc.dvi gmc.dvi; \
|
mv -f tmpdvi/gmc.dvi gmc.dvi; \
|
||||||
@ -50,7 +47,7 @@ gmc.dvi: $(srcdir)/gmc.sgml
|
|||||||
|
|
||||||
gmc.rtf: $(srcdir)/gmc.sgml
|
gmc.rtf: $(srcdir)/gmc.sgml
|
||||||
mkdir tmprtf
|
mkdir tmprtf
|
||||||
cp $(srcdir)/gmc.sgml tmprtf
|
cp -f $(srcdir)/gmc.sgml tmprtf
|
||||||
db2rtf tmprtf/gmc.sgml
|
db2rtf tmprtf/gmc.sgml
|
||||||
if test -f tmprtf/gmc.rtf; then \
|
if test -f tmprtf/gmc.rtf; then \
|
||||||
mv -f tmprtf/gmc.rtf gmc.rtf; \
|
mv -f tmprtf/gmc.rtf gmc.rtf; \
|
||||||
|
32
doc-gnome/C/mkhtml
Executable file
32
doc-gnome/C/mkhtml
Executable file
@ -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
Block a user