Oops! Forgot to commit a few files.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1073 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2000-10-03 08:55:52 +00:00
parent 82ef1fd1de
commit 793da498a2
4 changed files with 48 additions and 12 deletions

View File

@ -1,3 +1,33 @@
2000-10-01 Dekel Tsur <dekelts@tau.ac.il>
* lib/configure.m4
* lib/build-listerrors
* src/converter.C
* src/exporter.C: Add literate programming support to the export code
* src/buffer.C
* src/lyx_cb.C: Remove old literate code.
* src/lyxrc.[Ch]: Remove many obsolete (due to new export code)
variables.
* src/lyxfunc.C (getStatus): Use Exporter::IsExportable
* src/converter.C (View, Convert): Use QuoteName.
* src/insets/figinset.C (Preview): Use Formats::View.
* lib/configure.m4: Add sgml->dvi converter to lyxrc.default
2000-10-02 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
* src/lyxfunc.C (Dispatch): move declaration of text variable at
the top of the function, because compaq cxx complains that the
"goto exit_with_message" when the function is disabled bypasses
its initialization.
(MenuNew): try a better fix for the generation of new file names.
This time, I used AddName() instead of AddPath(), hoping Juergen
will be happier :)
2000-10-03 Allan Rae <rae@lyx.org>
* src/frontends/xforms/forms/form_preferences.fd:
@ -238,7 +268,7 @@
2000-09-29 Lars Gullik Bjønnes <larsbj@lyx.org>
* several files: type canges to reduce the number of warnings and
* several files: type changes to reduce the number of warnings and
to unify type hangling a bit. Still much to do.
2000-09-29 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>

View File

@ -14,6 +14,6 @@ else
lyx=lyx
fi
$lyx --export tex examples/Literate.lyx
mv examples/Literate.tex Literate.nw
$lyx --export nw examples/Literate.lyx
mv examples/Literate.nw Literate.nw
notangle -Rbuild-script Literate.nw | sh

13
lib/configure vendored
View File

@ -225,9 +225,9 @@ PATH=${save_PATH}
# Search something to process a literate document
echo $ac_n "checking for a Literate programming processor""... $ac_c"
echo "$ac_t""("noweave -delay -index")"
echo "$ac_t""("noweave -delay -index \$\$FName > \$\$OutName")"
LITERATE=
for ac_prog in "noweave -delay -index"
for ac_prog in "noweave -delay -index \$\$FName > \$\$OutName"
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog ; ac_word=$2
@ -258,7 +258,7 @@ if test -z "$LITERATE" ; then
LITERATE=none
fi
if test "$LITERATE" = "none"; then LITERATE_EXT="none"; else LITERATE_EXT=".nw"; fi
if test "$LITERATE" = "none"; then LITERATE_EXT="none"; else LITERATE_EXT="nw"; fi
# Search for a Postscript interpreter
echo $ac_n "checking for a Postscript interpreter""... $ac_c"
@ -716,10 +716,12 @@ fi
case $LINUXDOC in
sgml2lyx)
linuxdoc_to_latex_command="sgml2latex \$\$FName"
linuxdoc_to_dvi_command="sgml2latex -o dvi \$\$FName"
linuxdoc_to_html_command="sgml2html \$\$FName"
linuxdoc_to_lyx_command="sgml2lyx";;
none)
linuxdoc_to_latex_command="none"
linuxdoc_to_dvi_command="none"
linuxdoc_to_html_command="none"
linuxdoc_to_lyx_command="none";;
esac
@ -950,21 +952,22 @@ cat >lyxrc.defaults <<EOF
\\converter dvi ps "$dvi_to_ps_command" ""
\\converter ps pdf "$ps_to_pdf_command" ""
\\converter sgml tex "$linuxdoc_to_latex_command" ""
\\converter sgml dvi "$linuxdoc_to_dvi_command" ""
\\converter sgml html "$linuxdoc_to_html_command" ""
\\converter docbook dvi "$docbook_to_dvi_command" ""
\\converter docbook html "$docbook_to_html_command" ""
\\converter tex html "$latex_to_html_command"
"originaldir,needaux"
\\converter $LITERATE_EXT tex "$LITERATE" ""
\\viewer dvi "$DVI_VIEWER"
\\viewer html "$HTML_VIEWER"
\\viewer pdf "$PDF_VIEWER"
\\viewer ps "$GHOSTVIEW -swap"
\\viewer pspic "$GHOSTVIEW"
\\viewer eps "$GHOSTVIEW"
\\relyx_command "$RELYX"
\\linuxdoc_to_lyx_command "$linuxdoc_to_lyx_command"
\\literate_command "$LITERATE"
\\literate_extension "$LITERATE_EXT"
\\ps_command "$GS"
\\ascii_roff_command "$ascii_roff_command"

View File

@ -186,8 +186,8 @@ SEARCH_PROG([for reLyX LaTeX-to-LyX translator],RELYX,reLyX)
PATH=${save_PATH}
# Search something to process a literate document
SEARCH_PROG([for a Literate programming processor],LITERATE,"noweave -delay -index")
if test "$LITERATE" = "none"; then LITERATE_EXT="none"; else LITERATE_EXT=".nw"; fi
SEARCH_PROG([for a Literate programming processor],LITERATE,"noweave -delay -index \$\$FName > \$\$OutName")
if test "$LITERATE" = "none"; then LITERATE_EXT="none"; else LITERATE_EXT="nw"; fi
# Search for a Postscript interpreter
SEARCH_PROG([for a Postscript interpreter],GS, gs)
@ -249,10 +249,12 @@ fi
case $LINUXDOC in
sgml2lyx)
linuxdoc_to_latex_command="sgml2latex \$\$FName"
linuxdoc_to_dvi_command="sgml2latex -o dvi \$\$FName"
linuxdoc_to_html_command="sgml2html \$\$FName"
linuxdoc_to_lyx_command="sgml2lyx";;
none)
linuxdoc_to_latex_command="none"
linuxdoc_to_dvi_command="none"
linuxdoc_to_html_command="none"
linuxdoc_to_lyx_command="none";;
esac
@ -372,21 +374,22 @@ cat >lyxrc.defaults <<EOF
\\converter dvi ps "$dvi_to_ps_command" ""
\\converter ps pdf "$ps_to_pdf_command" ""
\\converter sgml tex "$linuxdoc_to_latex_command" ""
\\converter sgml dvi "$linuxdoc_to_dvi_command" ""
\\converter sgml html "$linuxdoc_to_html_command" ""
\\converter docbook dvi "$docbook_to_dvi_command" ""
\\converter docbook html "$docbook_to_html_command" ""
\\converter tex html "$latex_to_html_command"
"originaldir,needaux"
\\converter $LITERATE_EXT tex "$LITERATE" ""
\\viewer dvi "$DVI_VIEWER"
\\viewer html "$HTML_VIEWER"
\\viewer pdf "$PDF_VIEWER"
\\viewer ps "$GHOSTVIEW -swap"
\\viewer pspic "$GHOSTVIEW"
\\viewer eps "$GHOSTVIEW"
\\relyx_command "$RELYX"
\\linuxdoc_to_lyx_command "$linuxdoc_to_lyx_command"
\\literate_command "$LITERATE"
\\literate_extension "$LITERATE_EXT"
\\ps_command "$GS"
\\ascii_roff_command "$ascii_roff_command"