>>>>> "Bo" == Bo Peng <[EMAIL PROTECTED]> writes:
>> Well I would have appreciated to have an occasion to see the patch
>> first. I guess I will have to ask trac.
Bo> This is why we need trac. Anyway, the changes are pretty big, and
Bo> many are cosmetic. it is far easier just looking at the python
Bo> files.
I have done some inspection, and came up with the following mostly
cosmetic patch. I did not test the most important things (that the
scripts work!), but I hope having the code in branch will be enough.
I'll apply it soon. I guess some of it applies to trunk too.
JMarc
Index: src/graphics/GraphicsConverter.C
===================================================================
--- src/graphics/GraphicsConverter.C (revision 14554)
+++ src/graphics/GraphicsConverter.C (working copy)
@@ -174,7 +174,7 @@
QuoteName(to_format + ':' + to_file_);
lyxerr[Debug::GRAPHICS]
- << "\tNo converter defined! I use convertDefault.sh\n\t"
+ << "\tNo converter defined! I use convertDefault.py\n\t"
<< script_command_ << endl;
} else {
Index: src/converter.C
===================================================================
--- src/converter.C (revision 14554)
+++ src/converter.C (working copy)
@@ -306,7 +306,7 @@
QuoteName(to_ext + ':' + to_file);
lyxerr[Debug::FILES]
<< "No converter defined! "
- "I use convertDefault.sh:\n\t"
+ "I use convertDefault.py:\n\t"
<< command << endl;
Systemcall one;
one.startscript(Systemcall::Wait, command);
Index: src/frontends/xforms/FormTexinfo.C
===================================================================
--- src/frontends/xforms/FormTexinfo.C (revision 14554)
+++ src/frontends/xforms/FormTexinfo.C (working copy)
@@ -57,7 +57,7 @@
str = _("Show full path or only file name.");
tooltips().init(dialog_->check_fullpath, str);
- str = _("Runs the script \"TexFiles.sh\" to rebuild the file lists.");
+ str = _("Runs the script \"TexFiles.py\" to rebuild the file lists.");
tooltips().init(dialog_->button_rescan, str);
str = _("Double click to view contents of file.");
Index: src/mover.h
===================================================================
--- src/mover.h (revision 14554)
+++ src/mover.h (working copy)
@@ -105,7 +105,7 @@
/** @c command should be of the form
* <code>
- * sh $$s/scripts/fig_copy.sh $$i $$o $$l
+ * python $$s/scripts/fig_copy.py $$i $$o $$l
* </code>
* where $$s is a placeholder for the lyx support directory,
* $$i is a placeholder for the name of the file to be moved,
Index: lib/scripts/fig_copy.py
===================================================================
--- lib/scripts/fig_copy.py (revision 14554)
+++ lib/scripts/fig_copy.py (working copy)
@@ -21,7 +21,7 @@
import os, sys
if len(sys.argv) != 3:
- print >> sys.stderr, "Usage: fig_copy.sh <from file> <to file>"
+ print >> sys.stderr, "Usage: fig_copy.py <from file> <to file>"
sys.exit(1)
if not os.path.isfile(sys.argv[1]):
Index: lib/scripts/TeXFiles.py
===================================================================
--- lib/scripts/TeXFiles.py (revision 14554)
+++ lib/scripts/TeXFiles.py (working copy)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python -tt
+#!/usr/bin/env python
# -*- coding: iso-8859-1 -*-
# file TeXFiles.py
Index: lib/scripts/clean_dvi.py
===================================================================
--- lib/scripts/clean_dvi.py (revision 14554)
+++ lib/scripts/clean_dvi.py (working copy)
@@ -4,7 +4,7 @@
file clean_dvi.py
This file is part of LyX, the document processor.
Licence details can be found in the file COPYING
-or at http://www.lyx.org/about/licence.php3
+or at http://www.lyx.org/about/licence.php
author Angus Leeming
Full author contact details are available in the file CREDITS