]> git.lyx.org Git - lyx.git/commitdiff
Enhance variables for Convertes - add input and original paths.
authorPavel Sanda <sanda@lyx.org>
Wed, 21 Jan 2009 20:08:07 +0000 (20:08 +0000)
committerPavel Sanda <sanda@lyx.org>
Wed, 21 Jan 2009 20:08:07 +0000 (20:08 +0000)
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg147425.html

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

src/Converter.cpp

index b9c31bd00e5ed4ac0f62a2fd7b87b2280939dd76..fd4e7856f76f644219d1b938279c156e0b141f95 100644 (file)
@@ -48,6 +48,7 @@ string const token_from("$$i");
 string const token_base("$$b");
 string const token_to("$$o");
 string const token_path("$$p");
+string const token_orig_path("$$r");
 
 
 
@@ -394,6 +395,8 @@ bool Converters::convert(Buffer const * buffer,
                        command = subst(command, token_from, quoteName(infile2));
                        command = subst(command, token_base, quoteName(from_base));
                        command = subst(command, token_to, quoteName(outfile2));
+                       command = subst(command, token_path, quoteName(infile.onlyPath().absFilename()));
+                       command = subst(command, token_orig_path, quoteName(orig_from.onlyPath().absFilename()));
                        command = libScriptSearch(command);
 
                        if (!conv.parselog.empty())