]> git.lyx.org Git - features.git/commitdiff
* configure.py : Fix the detection of htmltolatex (#6339)
authorJulien Rioux <jrioux@lyx.org>
Wed, 7 Sep 2011 23:56:38 +0000 (23:56 +0000)
committerJulien Rioux <jrioux@lyx.org>
Wed, 7 Sep 2011 23:56:38 +0000 (23:56 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39638 a592a061-630c-0410-9148-cb99ea01b6c8

lib/configure.py

index 71bae77b9ac5df894183fc70fd26bfb99ed67a4d..d1ed7f72cb65ee5aec3c8cd8f338cb1644bcc21b 100644 (file)
@@ -649,9 +649,14 @@ def checkConverterEntries(java='', perl=''):
     checkProg('a Sweave -> R/S code converter', ['Rscript --verbose --no-save --no-restore $$s/scripts/lyxstangle.R $$i $$e $$r'], 
         rc_entry = [ r'\converter sweave      r      "%%"    ""' ])
     #
-    checkProg('an HTML -> LaTeX converter', ['html2latex $$i', 'gnuhtml2latex $$i', \
-        'htmltolatex -input $$i -output $$o', 'java -jar htmltolatex.jar -input $$i -output $$o'],
-        rc_entry = [ r'\converter html       latex      "%%"   ""' ])
+    path, htmltolatex = checkProg('an HTML -> LaTeX converter', ['html2latex $$i',
+        'gnuhtml2latex $$i', 'htmltolatex -input $$i -output $$o', 'htmltolatex.jar'],
+        rc_entry = [ r'\converter html       latex      "%%"   ""',
+                     r'\converter html       latex      "%%"   ""',
+                     r'\converter html       latex      "%%"   ""', '', ''] )
+    if htmltolatex == 'htmltolatex.jar' and java != '':
+        addToRC(r'\converter html       latex      "%s -jar \"%s\" -input $$i -output $$o"     ""'
+            % (java, os.path.join(path, htmltolatex)))
     #
     checkProg('an MS Word -> LaTeX converter', ['wvCleanLatex $$i $$o'],
         rc_entry = [ r'\converter word       latex      "%%"   ""' ])