From 054939e184ba583596e4ab5a30ec76802450244e Mon Sep 17 00:00:00 2001 From: Karl Cunningham Date: Thu, 26 May 2005 19:50:14 +0000 Subject: [PATCH] Fix annoying (at least to me) error from latex2html when attempting to link index.html. --- docs/developers/Makefile | 15 ++++++++------- docs/developers/latex2html-init.pl | 10 ++++++++++ docs/manual-fr/Makefile | 15 ++++++++------- docs/manual-fr/latex2html-init.pl | 10 ++++++++++ docs/manual/Makefile | 16 ++++++++-------- docs/manual/latex2html-init.pl | 10 ++++++++++ 6 files changed, 54 insertions(+), 22 deletions(-) create mode 100644 docs/developers/latex2html-init.pl create mode 100644 docs/manual-fr/latex2html-init.pl create mode 100644 docs/manual/latex2html-init.pl diff --git a/docs/developers/Makefile b/docs/developers/Makefile index 3fbad0cc..808c14bd 100644 --- a/docs/developers/Makefile +++ b/docs/developers/Makefile @@ -118,11 +118,12 @@ html: devhtml: @echo "Making developers html" - ./translate_images.pl --from_meaningful_names developers.html + @./translate_images.pl --from_meaningful_names developers.html @cp -fp ${IMAGES}/*.eps . latex2html -white -no_subdir -split 0 -toc_stars -white -notransparent \ - developers >/dev/null - ./translate_images.pl --to_meaningful_names developers.html + -init_file latex2html-init.pl developers >/dev/null + @echo + @./translate_images.pl --to_meaningful_names developers.html @rm -f *.eps *.gif *.jpg *.old @@ -144,16 +145,16 @@ web: devweb: @echo "Making developers web" @mkdir -p developers - ./translate_images.pl --from_meaningful_names developers/Developers_Guide.html + @./translate_images.pl --from_meaningful_names developers/Developers_Guide.html @rm -f developers/*.html @cp -fp ${IMAGES}/*.eps . @rm -f next.eps next.png prev.eps prev.png up.eps up.png @cp -fp ${IMAGES}/*.eps developers/ @rm -f developers/next.eps developers/next.png developers/prev.eps developers/prev.png developers/up.eps developers/up.png - latex2html -split 5 -local_icons -t "Developer's Guide" -long_titles 4 \ + latex2html -split 5 -local_icons -t "Developer's Guide" -init_file latex2html-init.pl -long_titles 4 \ -contents_in_nav -toc_stars -white -notransparent developers >/dev/null - ./translate_images.pl --to_meaningful_names developers/Developers_Guide.html - @cp -f developers/Developers_Guide.html developers/index.html + @echo + @./translate_images.pl --to_meaningful_names developers/Developers_Guide.html @rm -f *.eps *.gif *.jpg developers/*.eps *.old texcheck: diff --git a/docs/developers/latex2html-init.pl b/docs/developers/latex2html-init.pl new file mode 100644 index 00000000..14b5c319 --- /dev/null +++ b/docs/developers/latex2html-init.pl @@ -0,0 +1,10 @@ +# This file serves as a place to put initialization code and constants to +# affect the behavior of latex2html for generating the bacula manuals. + +# $LINKPOINT specifies what filename to use to link to when creating +# index.html. Not that this is a hard link. +$LINKPOINT='"$OVERALL_TITLE"'; + + +# The following must be the last line of this file. +1; diff --git a/docs/manual-fr/Makefile b/docs/manual-fr/Makefile index d326db31..d7f53e99 100644 --- a/docs/manual-fr/Makefile +++ b/docs/manual-fr/Makefile @@ -107,11 +107,12 @@ devpdfm: html: @echo "Making html" - ./translate_images.pl --from_meaningful_names bacula.html + @./translate_images.pl --from_meaningful_names bacula.html @cp -fp ${IMAGES}/*.eps . latex2html -white -no_subdir -split 0 -toc_stars -white -notransparent \ - bacula >/dev/null - ./translate_images.pl --to_meaningful_names bacula.html + -init_file latex2html-init.pl bacula >/dev/null + @echo + @./translate_images.pl --to_meaningful_names bacula.html @rm -f *.eps *.gif *.jpg *.old devhtml: @@ -126,16 +127,16 @@ devhtml: web: @echo "Making web" @mkdir -p bacula - ./translate_images.pl --from_meaningful_names bacula/Bacula_Users_Guide.html + @./translate_images.pl --from_meaningful_names bacula/Bacula_Users_Guide.html @rm -rf bacula/*.html @cp -fp ${IMAGES}/*.eps . @rm -f next.eps next.png prev.eps prev.png up.eps up.png @cp -fp ${IMAGES}/*.eps *.txt bacula @rm -f bacula/next.eps bacula/next.png bacula/prev.eps bacula/prev.png bacula/up.eps bacula/up.png latex2html -split 4 -local_icons -t "Bacula User's Guide" -long_titles 4 \ - -toc_stars -contents_in_nav -white -notransparent bacula >/dev/null - ./translate_images.pl --to_meaningful_names bacula/Bacula_Users_Guide.html - @cp -f bacula/Bacula_Users_Guide.html bacula/index.html + -toc_stars -init_file latex2html-init.pl -contents_in_nav -white -notransparent bacula >/dev/null + @echo + @./translate_images.pl --to_meaningful_names bacula/Bacula_Users_Guide.html @rm -f *.eps *.gif *.jpg bacula/*.eps *.old devweb: diff --git a/docs/manual-fr/latex2html-init.pl b/docs/manual-fr/latex2html-init.pl new file mode 100644 index 00000000..14b5c319 --- /dev/null +++ b/docs/manual-fr/latex2html-init.pl @@ -0,0 +1,10 @@ +# This file serves as a place to put initialization code and constants to +# affect the behavior of latex2html for generating the bacula manuals. + +# $LINKPOINT specifies what filename to use to link to when creating +# index.html. Not that this is a hard link. +$LINKPOINT='"$OVERALL_TITLE"'; + + +# The following must be the last line of this file. +1; diff --git a/docs/manual/Makefile b/docs/manual/Makefile index 76f6ed00..cc6da2f1 100644 --- a/docs/manual/Makefile +++ b/docs/manual/Makefile @@ -112,11 +112,12 @@ devpdfm: html: @echo "Making html" - ./translate_images.pl --from_meaningful_names bacula.html + @./translate_images.pl --from_meaningful_names bacula.html @cp -fp ${IMAGES}/*.eps . latex2html -white -no_subdir -split 0 -toc_stars -white -notransparent \ - bacula >/dev/null - ./translate_images.pl --to_meaningful_names bacula.html + -init_file latex2html-init.pl bacula >/dev/null + @echo + @./translate_images.pl --to_meaningful_names bacula.html @rm -f *.eps *.gif *.jpg devhtml: @@ -131,17 +132,16 @@ devhtml: web: @echo "Making web" @mkdir -p bacula - ./translate_images.pl --from_meaningful_names bacula/Bacula_Users_Guide.html + @./translate_images.pl --from_meaningful_names bacula/Bacula_Users_Guide.html @rm -rf bacula/*.html @cp -fp ${IMAGES}/*.eps . @rm -f next.eps next.png prev.eps prev.png up.eps up.png -# @cp -fp ${IMAGES}/*.eps ${IMAGES}/*.png *.txt bacula @cp -fp ${IMAGES}/*.eps *.txt bacula @rm -f bacula/next.eps bacula/next.png bacula/prev.eps bacula/prev.png bacula/up.eps bacula/up.png latex2html -split 4 -local_icons -t "Bacula User's Guide" -long_titles 4 \ - -toc_stars -contents_in_nav -white -notransparent bacula >/dev/null - ./translate_images.pl --to_meaningful_names bacula/Bacula_Users_Guide.html - @cp -f bacula/Bacula_Users_Guide.html bacula/index.html + -toc_stars -contents_in_nav -init_file latex2html-init.pl -white -notransparent bacula >/dev/null + @echo + @./translate_images.pl --to_meaningful_names bacula/Bacula_Users_Guide.html @cp -f bacula/Bacula_Freque_Asked_Questi.html bacula/faq.html @rm -f *.eps *.gif *.jpg bacula/*.eps *.old diff --git a/docs/manual/latex2html-init.pl b/docs/manual/latex2html-init.pl new file mode 100644 index 00000000..14b5c319 --- /dev/null +++ b/docs/manual/latex2html-init.pl @@ -0,0 +1,10 @@ +# This file serves as a place to put initialization code and constants to +# affect the behavior of latex2html for generating the bacula manuals. + +# $LINKPOINT specifies what filename to use to link to when creating +# index.html. Not that this is a hard link. +$LINKPOINT='"$OVERALL_TITLE"'; + + +# The following must be the last line of this file. +1; -- 2.39.5