]> git.lyx.org Git - features.git/commitdiff
insetexternal: Do not run update command if result file exists and is up to
authorDekel Tsur <dekelts@tau.ac.il>
Fri, 2 Nov 2001 16:28:29 +0000 (16:28 +0000)
committerDekel Tsur <dekelts@tau.ac.il>
Fri, 2 Nov 2001 16:28:29 +0000 (16:28 +0000)
date.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2960 a592a061-630c-0410-9148-cb99ea01b6c8

lib/ChangeLog
lib/external_templates
lib/scripts/general_command_wrapper.py
lib/scripts/pic2ascii.py
lib/scripts/pic2png_eps.py

index f6577abe55e11aa2724f4ba0c33a2840867ab90e..1ba7c28d3ea573caa8a8723a300a97ec66997f1b 100644 (file)
@@ -1,3 +1,9 @@
+2001-11-02  Dekel Tsur  <dekelts@tau.ac.il>
+
+       * external_templates: Use UpdateResult
+
+       * scripts/*.py: Fix for python 1.5
+
 2001-10-31  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
 
        * examples/iecc05.fen: 
index 28760b22d871ad605150aa106675a0ae74d96268..78ad5b2a47187bf158d02da0b78c3997ccddba6d 100644 (file)
@@ -24,15 +24,18 @@ Template RasterImage
        Format LaTeX
                Product "\\includegraphics{$$Basename.eps}"
                UpdateCommand "convert $$Parameters $$FName $$Basename.eps"
+               UpdateResult "$$Basename.eps"
                Requirement "graphics"
        FormatEnd
        Format Ascii
                Product "$$Contents(\"$$Basename.asc\")"
                UpdateCommand "python $$Sysdir/scripts/pic2ascii.py $$FName $$Parameters"
+               UpdateResult "$$Basename.asc"
        FormatEnd
        Format DocBook
                Product "<graphic fileref=\"$$Basename.eps\"></graphic>"
                UpdateCommand "python $$Sysdir/scripts/pic2png_eps.py $$FName $$Parameters"
+               UpdateResult "$$Basename.eps"
        FormatEnd
        Format LinuxDoc
                Product "[Bitmap: $$FName]"
@@ -66,15 +69,18 @@ Template XFig
        Format LaTeX
                Product "\\begin{picture}(0,0)\\includegraphics{$$Basename.eps}\\end{picture}\\input{$$Basename.pstex_t}"
                UpdateCommand "python $$Sysdir/scripts/fig2pstex.py $$FName $$Parameters"
+               UpdateResult "$$Basename.eps"
                Requirement "graphics"  
        FormatEnd
        Format Ascii
                Product "$$Contents(\"$$Basename.asc\")"
                UpdateCommand "python $$Sysdir/scripts/pic2ascii.py $$FName $$Parameters"
+               UpdateResult "$$Basename.asc"
        FormatEnd
        Format DocBook
                Product "<graphic fileref=\"$$Basename.eps\"></graphic>"
                UpdateCommand "python $$Sysdir/scripts/pic2png_eps.py $$FName $$Parameters"
+               UpdateResult "$$Basename.eps"
        FormatEnd
        Format LinuxDoc
                Product "[XFig: $$FName]"
@@ -114,6 +120,7 @@ Template ChessDiagram
        Format Ascii
                Product "$$Contents(\"$$Basename.asc\")"
                UpdateCommand "python $$Sysdir/scripts/fen2ascii.py $$FName $$Basename.asc"
+               UpdateResult "$$Basename.asc"
        FormatEnd
        Format DocBook
                Product "[Chess: $$Basename]"
index 700441757c6d262878b167367826ff41107419c7..7ed2397541a9588f47b8b21ec814bb6e68cb0079 100644 (file)
@@ -8,9 +8,6 @@
 
 import sys
 import os
-import os.path
-
-
 
 if sys.argv[1] != "-":
        os.close(0)
index 069fd1bae632efb4fd8f414b5c27af3ac5f25693..16395cac24999f6a660981e0b8ebc1962ec9e3e2 100644 (file)
@@ -4,7 +4,6 @@
 
 import sys
 import os
-import os.path
 import string
 
 pid = os.fork()
index 90d868db3c6b506061089fd6de70c205d35ad6a6..864431bddd7481d43f910a7f8532b9dc13ef458b 100644 (file)
@@ -3,7 +3,6 @@
 
 import sys
 import os
-import os.path
 
 if len(sys.argv) > 2:
        pars = sys.argv[2]