mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-29 05:01:49 +00:00
Fixes from Jose' for docbook detection
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@710 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
17aee04500
commit
4bca0762af
@ -1,3 +1,9 @@
|
|||||||
|
2000-05-03 Jose Abilio Oliveira Matos <jamatos@novalis.fc.up.pt>
|
||||||
|
|
||||||
|
* lib/lyxrc.example: fix examples for exporting SGML to HTML.
|
||||||
|
|
||||||
|
* lib/configure.m4: better autodetection of DocBook tools.
|
||||||
|
|
||||||
2000-04-28 Lars Gullik Bjønnes <larsbj@lyx.org>
|
2000-04-28 Lars Gullik Bjønnes <larsbj@lyx.org>
|
||||||
|
|
||||||
* src/lyx_main.C (easyParse): use lyxerr instead of cerr.
|
* src/lyx_main.C (easyParse): use lyxerr instead of cerr.
|
||||||
|
33
lib/configure
vendored
33
lib/configure
vendored
@ -638,11 +638,22 @@ if test $LINUXDOC != none; then
|
|||||||
linuxdoc_cmd="\\def\\haslinuxdoc{yes}"
|
linuxdoc_cmd="\\def\\haslinuxdoc{yes}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
case $LINUXDOC in
|
||||||
|
sgml2lyx)
|
||||||
|
linuxdoc_to_latex_command="sgml2latex"
|
||||||
|
linuxdoc_to_html_command="sgml2html '\$\$FName'"
|
||||||
|
linuxdoc_to_lyx_command="sgml2lyx";;
|
||||||
|
none)
|
||||||
|
linuxdoc_to_latex_command="none"
|
||||||
|
linuxdoc_to_html_command="none"
|
||||||
|
linuxdoc_to_lyx_command="none";;
|
||||||
|
esac
|
||||||
|
|
||||||
# Search for DocBook support
|
# Search for DocBook support
|
||||||
echo $ac_n "checking for SGML-tools 2.x (DocBook)""... $ac_c"
|
echo $ac_n "checking for SGML-tools 2.x (DocBook) or db2x scripts""... $ac_c"
|
||||||
echo "$ac_t""(sgmltools)"
|
echo "$ac_t""(sgmltools db2dvi)"
|
||||||
DOCBOOK=
|
DOCBOOK=
|
||||||
for ac_prog in sgmltools
|
for ac_prog in sgmltools db2dvi
|
||||||
do
|
do
|
||||||
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
||||||
set dummy $ac_prog ; ac_word=$2
|
set dummy $ac_prog ; ac_word=$2
|
||||||
@ -679,6 +690,17 @@ if test $DOCBOOK != none; then
|
|||||||
docbook_cmd="\\def\\hasdocbook{yes}"
|
docbook_cmd="\\def\\hasdocbook{yes}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
case $DOCBOOK in
|
||||||
|
sgmltools)
|
||||||
|
docbook_to_dvi_command="sgmltools -b dvi"
|
||||||
|
docbook_to_html_command="sgmltools -b html '\$\$FName'";;
|
||||||
|
db2dvi)
|
||||||
|
docbook_to_dvi_command="db2dvi"
|
||||||
|
docbook_to_html_command="db2html '\$\$FName'";;
|
||||||
|
none)
|
||||||
|
docbook_to_dvi_command="none"
|
||||||
|
docbook_to_html_command="none";;
|
||||||
|
esac
|
||||||
|
|
||||||
# Search for a spool command
|
# Search for a spool command
|
||||||
echo $ac_n "checking for a spool command""... $ac_c"
|
echo $ac_n "checking for a spool command""... $ac_c"
|
||||||
@ -862,6 +884,11 @@ cat >lyxrc.defaults <<EOF
|
|||||||
\\chktex_command "$chktex_command"
|
\\chktex_command "$chktex_command"
|
||||||
\\spell_command "$SPELL"
|
\\spell_command "$SPELL"
|
||||||
\\fax_command "$fax_command"
|
\\fax_command "$fax_command"
|
||||||
|
\\linuxdoc_to_latex_command "$linuxdoc_to_latex_command"
|
||||||
|
\\linuxdoc_to_html_command "$linuxdoc_to_html_command"
|
||||||
|
\\linuxdoc_to_lyx_command "$linuxdoc_to_lyx_command"
|
||||||
|
\\docbook_to_dvi_command "$docbook_to_dvi_command"
|
||||||
|
\\docbook_to_html_command "$docbook_to_html_command"
|
||||||
\\html_command "$html_command"
|
\\html_command "$html_command"
|
||||||
\\print_spool_command "$print_spool_command"
|
\\print_spool_command "$print_spool_command"
|
||||||
\\print_spool_printerprefix "$print_spool_printerprefix"
|
\\print_spool_printerprefix "$print_spool_printerprefix"
|
||||||
|
@ -237,14 +237,36 @@ if test $LINUXDOC != none; then
|
|||||||
linuxdoc_cmd="\\def\\haslinuxdoc{yes}"
|
linuxdoc_cmd="\\def\\haslinuxdoc{yes}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
case $LINUXDOC in
|
||||||
|
sgml2lyx)
|
||||||
|
linuxdoc_to_latex_command="sgml2latex"
|
||||||
|
linuxdoc_to_html_command="sgml2html '\$\$FName'"
|
||||||
|
linuxdoc_to_lyx_command="sgml2lyx";;
|
||||||
|
none)
|
||||||
|
linuxdoc_to_latex_command="none"
|
||||||
|
linuxdoc_to_html_command="none"
|
||||||
|
linuxdoc_to_lyx_command="none";;
|
||||||
|
esac
|
||||||
|
|
||||||
# Search for DocBook support
|
# Search for DocBook support
|
||||||
SEARCH_PROG([for SGML-tools 2.x (DocBook)], DOCBOOK, sgmltools)
|
SEARCH_PROG([for SGML-tools 2.x (DocBook) or db2x scripts], DOCBOOK, sgmltools db2dvi)
|
||||||
chk_docbook=no
|
chk_docbook=no
|
||||||
if test $DOCBOOK != none; then
|
if test $DOCBOOK != none; then
|
||||||
chk_docbook=yes
|
chk_docbook=yes
|
||||||
docbook_cmd="\\def\\hasdocbook{yes}"
|
docbook_cmd="\\def\\hasdocbook{yes}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
case $DOCBOOK in
|
||||||
|
sgmltools)
|
||||||
|
docbook_to_dvi_command="sgmltools -b dvi"
|
||||||
|
docbook_to_html_command="sgmltools -b html '\$\$FName'";;
|
||||||
|
db2dvi)
|
||||||
|
docbook_to_dvi_command="db2dvi"
|
||||||
|
docbook_to_html_command="db2html '\$\$FName'";;
|
||||||
|
none)
|
||||||
|
docbook_to_dvi_command="none"
|
||||||
|
docbook_to_html_command="none";;
|
||||||
|
esac
|
||||||
|
|
||||||
# Search for a spool command
|
# Search for a spool command
|
||||||
SEARCH_PROG([for a spool command], LPR, lp lpr)
|
SEARCH_PROG([for a spool command], LPR, lp lpr)
|
||||||
@ -350,6 +372,11 @@ cat >lyxrc.defaults <<EOF
|
|||||||
\\chktex_command "$chktex_command"
|
\\chktex_command "$chktex_command"
|
||||||
\\spell_command "$SPELL"
|
\\spell_command "$SPELL"
|
||||||
\\fax_command "$fax_command"
|
\\fax_command "$fax_command"
|
||||||
|
\\linuxdoc_to_latex_command "$linuxdoc_to_latex_command"
|
||||||
|
\\linuxdoc_to_html_command "$linuxdoc_to_html_command"
|
||||||
|
\\linuxdoc_to_lyx_command "$linuxdoc_to_lyx_command"
|
||||||
|
\\docbook_to_dvi_command "$docbook_to_dvi_command"
|
||||||
|
\\docbook_to_html_command "$docbook_to_html_command"
|
||||||
\\html_command "$html_command"
|
\\html_command "$html_command"
|
||||||
\\print_spool_command "$print_spool_command"
|
\\print_spool_command "$print_spool_command"
|
||||||
\\print_spool_printerprefix "$print_spool_printerprefix"
|
\\print_spool_printerprefix "$print_spool_printerprefix"
|
||||||
|
@ -466,7 +466,7 @@
|
|||||||
|
|
||||||
# Here you have the command to convert from linuxdoc to html.
|
# Here you have the command to convert from linuxdoc to html.
|
||||||
# Example: one html file only.
|
# Example: one html file only.
|
||||||
#\linuxdoc_to_html_command "sgml2html -s 0"
|
#\linuxdoc_to_html_command "sgml2html -s 0 '$$FName'"
|
||||||
|
|
||||||
# The LinuxDoc to LyX converter
|
# The LinuxDoc to LyX converter
|
||||||
#\linuxdoc_to_lyx_command "sgml2lyx"
|
#\linuxdoc_to_lyx_command "sgml2lyx"
|
||||||
@ -479,7 +479,7 @@
|
|||||||
#\docbook_to_dvi_command "sgmltools -b dvi"
|
#\docbook_to_dvi_command "sgmltools -b dvi"
|
||||||
|
|
||||||
# Command to convert a docbook file to html
|
# Command to convert a docbook file to html
|
||||||
#\docbook_to_html_command "sgmltools -b html"
|
#\docbook_to_html_command "sgmltools -b html '$$FName'"
|
||||||
|
|
||||||
# Command to convert a docbook file to pdf
|
# Command to convert a docbook file to pdf
|
||||||
#\docbook_to_pdf_command ""
|
#\docbook_to_pdf_command ""
|
||||||
|
Loading…
Reference in New Issue
Block a user