Re: execute command whenever I compile LyX file
On 12/14/2009 02:54 AM, Rainer M Krug wrote: Sorry - the copier should read: ### #!/bin/bash FROM=$1 TO=$2 TODIR=`dirname $TO` svn info $FROM $TODIR/svninfo.txt ### This might work. You should put the copier in ~/.lyx/scripts/ rh
Re: execute command whenever I compile LyX file
2009/12/14 rgheck rgh...@bobjweil.com On 12/14/2009 02:54 AM, Rainer M Krug wrote: Sorry - the copier should read: ### #!/bin/bash FROM=$1 TO=$2 TODIR=`dirname $TO` svn info $FROM $TODIR/svninfo.txt ### This might work. You should put the copier in ~/.lyx/scripts/ I save it in ~/.lyx/scripts/ but it is not executed. Do I have to set it somewhere to execute the script? Do I have to set the copier to execute this script somwehere under FileFormats? Or are the scripts in ~/.lyx/scripts automatically executed? Rainer rh -- NEW GERMAN FAX NUMBER!!! Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Natural Sciences Building Office Suite 2039 Stellenbosch University Main Campus, Merriman Avenue Stellenbosch South Africa Cell: +27 - (0)83 9479 042 Fax:+27 - (0)86 516 2782 Fax:+49 - (0)321 2125 2244 email: rai...@krugs.de Skype: RMkrug Google: r.m.k...@gmail.com
Re: execute command whenever I compile LyX file
On 12/14/2009 09:41 AM, Rainer M Krug wrote: I save it in ~/.lyx/scripts/ but it is not executed. Do I have to set it somewhere to execute the script? Do I have to set the copier to execute this script somwehere under FileFormats? Yes, you have to set the copier under Converters, for whichever converter you want to use it with. Note that you will want to use the variables mentioned in Customization 3.2 to get the arguments you need. By the way, I think you will also need to do the actual copying of the file from the temporary directory to the destination directory yourself. If you use a special copier, then LyX does not do it for you. rh
Re: execute command whenever I compile LyX file
2009/12/14 rgheck rgh...@bobjweil.com On 12/14/2009 09:41 AM, Rainer M Krug wrote: I save it in ~/.lyx/scripts/ but it is not executed. Do I have to set it somewhere to execute the script? Do I have to set the copier to execute this script somwehere under FileFormats? Yes, you have to set the copier under Converters, for whichever converter you want to use it with. Note that you will want to use the variables mentioned in Customization 3.2 to get the arguments you need. Do I have to set it under Copiers File Formats, or under Converters? I thought if I specify it under File Formats - Copier, it should work. By the way, I think you will also need to do the actual copying of the file from the temporary directory to the destination directory yourself. If you use a special copier, then LyX does not do it for you. Makes sense. Rainer rh -- NEW GERMAN FAX NUMBER!!! Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Natural Sciences Building Office Suite 2039 Stellenbosch University Main Campus, Merriman Avenue Stellenbosch South Africa Cell: +27 - (0)83 9479 042 Fax:+27 - (0)86 516 2782 Fax:+49 - (0)321 2125 2244 email: rai...@krugs.de Skype: RMkrug Google: r.m.k...@gmail.com
Re: execute command whenever I compile LyX file
On 12/14/2009 09:53 AM, Rainer M Krug wrote: 2009/12/14 rgheckrgh...@bobjweil.com On 12/14/2009 09:41 AM, Rainer M Krug wrote: I save it in ~/.lyx/scripts/ but it is not executed. Do I have to set it somewhere to execute the script? Do I have to set the copier to execute this script somwehere under FileFormats? Yes, you have to set the copier under Converters, for whichever converter you want to use it with. Note that you will want to use the variables mentioned in Customization 3.2 to get the arguments you need. Do I have to set it under Copiers File Formats, or under Converters? I thought if I specify it under File Formats - Copier, it should work. Sorry, yes, under Formats. rh
Re: execute command whenever I compile LyX file
2009/12/14 rgheck rgh...@bobjweil.com On 12/14/2009 09:53 AM, Rainer M Krug wrote: 2009/12/14 rgheckrgh...@bobjweil.com On 12/14/2009 09:41 AM, Rainer M Krug wrote: I save it in ~/.lyx/scripts/ but it is not executed. Do I have to set it somewhere to execute the script? Do I have to set the copier to execute this script somwehere under FileFormats? Yes, you have to set the copier under Converters, for whichever converter you want to use it with. Note that you will want to use the variables mentioned in Customization 3.2 to get the arguments you need. Do I have to set it under Copiers File Formats, or under Converters? I thought if I specify it under File Formats - Copier, it should work. Sorry, yes, under Formats. I don't get it to work - whatever I try. The copier (cp.lyx) in ~/.lyx/scriots reads: ## #!/bin/bash FROM=$1 TO=$2 TODIR=`dirname $TO` svn info $FROM $TODIR/svninfo.txt cp $FROM $TO ### Now which copier should I define? I want to have it preferably for all output formats, for View as well as Export. But I would be happy if it works for pdf (pdflatex). So I thought, I define the copier for PDF (pdflatex) as: cp.lyx $$i $$o First observation: I have to specify the whole path, i.e: ~/.lyx/scripts/cp.lyx $$i $$o Second: it works only when I use Export - and then this is the final step, i.e. AFTER the pdf is created (obviously) and the svn info can not be included in the document. What I would need, is a way of executing the command svn info TheLyxFile.lyx TheTMPDIR/svninfo.txt BEFORE LaTeX is compiling, so that the file can be included in the final document. Any tips appreciated, Rainer rh -- NEW GERMAN FAX NUMBER!!! Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Natural Sciences Building Office Suite 2039 Stellenbosch University Main Campus, Merriman Avenue Stellenbosch South Africa Cell: +27 - (0)83 9479 042 Fax:+27 - (0)86 516 2782 Fax:+49 - (0)321 2125 2244 email: rai...@krugs.de Skype: RMkrug Google: r.m.k...@gmail.com
Re: execute command whenever I compile LyX file
On 12/14/2009 02:54 AM, Rainer M Krug wrote: Sorry - the copier should read: ### #!/bin/bash FROM=$1 TO=$2 TODIR=`dirname $TO` svn info $FROM $TODIR/svninfo.txt ### This might work. You should put the copier in ~/.lyx/scripts/ rh
Re: execute command whenever I compile LyX file
2009/12/14 rgheck rgh...@bobjweil.com On 12/14/2009 02:54 AM, Rainer M Krug wrote: Sorry - the copier should read: ### #!/bin/bash FROM=$1 TO=$2 TODIR=`dirname $TO` svn info $FROM $TODIR/svninfo.txt ### This might work. You should put the copier in ~/.lyx/scripts/ I save it in ~/.lyx/scripts/ but it is not executed. Do I have to set it somewhere to execute the script? Do I have to set the copier to execute this script somwehere under FileFormats? Or are the scripts in ~/.lyx/scripts automatically executed? Rainer rh -- NEW GERMAN FAX NUMBER!!! Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Natural Sciences Building Office Suite 2039 Stellenbosch University Main Campus, Merriman Avenue Stellenbosch South Africa Cell: +27 - (0)83 9479 042 Fax:+27 - (0)86 516 2782 Fax:+49 - (0)321 2125 2244 email: rai...@krugs.de Skype: RMkrug Google: r.m.k...@gmail.com
Re: execute command whenever I compile LyX file
On 12/14/2009 09:41 AM, Rainer M Krug wrote: I save it in ~/.lyx/scripts/ but it is not executed. Do I have to set it somewhere to execute the script? Do I have to set the copier to execute this script somwehere under FileFormats? Yes, you have to set the copier under Converters, for whichever converter you want to use it with. Note that you will want to use the variables mentioned in Customization 3.2 to get the arguments you need. By the way, I think you will also need to do the actual copying of the file from the temporary directory to the destination directory yourself. If you use a special copier, then LyX does not do it for you. rh
Re: execute command whenever I compile LyX file
2009/12/14 rgheck rgh...@bobjweil.com On 12/14/2009 09:41 AM, Rainer M Krug wrote: I save it in ~/.lyx/scripts/ but it is not executed. Do I have to set it somewhere to execute the script? Do I have to set the copier to execute this script somwehere under FileFormats? Yes, you have to set the copier under Converters, for whichever converter you want to use it with. Note that you will want to use the variables mentioned in Customization 3.2 to get the arguments you need. Do I have to set it under Copiers File Formats, or under Converters? I thought if I specify it under File Formats - Copier, it should work. By the way, I think you will also need to do the actual copying of the file from the temporary directory to the destination directory yourself. If you use a special copier, then LyX does not do it for you. Makes sense. Rainer rh -- NEW GERMAN FAX NUMBER!!! Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Natural Sciences Building Office Suite 2039 Stellenbosch University Main Campus, Merriman Avenue Stellenbosch South Africa Cell: +27 - (0)83 9479 042 Fax:+27 - (0)86 516 2782 Fax:+49 - (0)321 2125 2244 email: rai...@krugs.de Skype: RMkrug Google: r.m.k...@gmail.com
Re: execute command whenever I compile LyX file
On 12/14/2009 09:53 AM, Rainer M Krug wrote: 2009/12/14 rgheckrgh...@bobjweil.com On 12/14/2009 09:41 AM, Rainer M Krug wrote: I save it in ~/.lyx/scripts/ but it is not executed. Do I have to set it somewhere to execute the script? Do I have to set the copier to execute this script somwehere under FileFormats? Yes, you have to set the copier under Converters, for whichever converter you want to use it with. Note that you will want to use the variables mentioned in Customization 3.2 to get the arguments you need. Do I have to set it under Copiers File Formats, or under Converters? I thought if I specify it under File Formats - Copier, it should work. Sorry, yes, under Formats. rh
Re: execute command whenever I compile LyX file
2009/12/14 rgheck rgh...@bobjweil.com On 12/14/2009 09:53 AM, Rainer M Krug wrote: 2009/12/14 rgheckrgh...@bobjweil.com On 12/14/2009 09:41 AM, Rainer M Krug wrote: I save it in ~/.lyx/scripts/ but it is not executed. Do I have to set it somewhere to execute the script? Do I have to set the copier to execute this script somwehere under FileFormats? Yes, you have to set the copier under Converters, for whichever converter you want to use it with. Note that you will want to use the variables mentioned in Customization 3.2 to get the arguments you need. Do I have to set it under Copiers File Formats, or under Converters? I thought if I specify it under File Formats - Copier, it should work. Sorry, yes, under Formats. I don't get it to work - whatever I try. The copier (cp.lyx) in ~/.lyx/scriots reads: ## #!/bin/bash FROM=$1 TO=$2 TODIR=`dirname $TO` svn info $FROM $TODIR/svninfo.txt cp $FROM $TO ### Now which copier should I define? I want to have it preferably for all output formats, for View as well as Export. But I would be happy if it works for pdf (pdflatex). So I thought, I define the copier for PDF (pdflatex) as: cp.lyx $$i $$o First observation: I have to specify the whole path, i.e: ~/.lyx/scripts/cp.lyx $$i $$o Second: it works only when I use Export - and then this is the final step, i.e. AFTER the pdf is created (obviously) and the svn info can not be included in the document. What I would need, is a way of executing the command svn info TheLyxFile.lyx TheTMPDIR/svninfo.txt BEFORE LaTeX is compiling, so that the file can be included in the final document. Any tips appreciated, Rainer rh -- NEW GERMAN FAX NUMBER!!! Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Natural Sciences Building Office Suite 2039 Stellenbosch University Main Campus, Merriman Avenue Stellenbosch South Africa Cell: +27 - (0)83 9479 042 Fax:+27 - (0)86 516 2782 Fax:+49 - (0)321 2125 2244 email: rai...@krugs.de Skype: RMkrug Google: r.m.k...@gmail.com
Re: execute command whenever I compile LyX file
On 12/14/2009 02:54 AM, Rainer M Krug wrote: Sorry - the copier should read: ### #!/bin/bash FROM=$1 TO=$2 TODIR=`dirname $TO` svn info $FROM> $TODIR/svninfo.txt ### This might work. You should put the copier in ~/.lyx/scripts/ rh
Re: execute command whenever I compile LyX file
2009/12/14 rgheck> On 12/14/2009 02:54 AM, Rainer M Krug wrote: > >> Sorry - the copier should read: >> >> ### >> #!/bin/bash >> >> FROM=$1 >> >> TO=$2 >> TODIR=`dirname $TO` >> >> svn info $FROM> $TODIR/svninfo.txt >> ### >> >> >> > This might work. > > You should put the copier in ~/.lyx/scripts/ > I save it in ~/.lyx/scripts/ but it is not executed. Do I have to set it somewhere to execute the script? Do I have to set the copier to execute this script somwehere under FileFormats? Or are the scripts in ~/.lyx/scripts automatically executed? Rainer > > rh > > -- NEW GERMAN FAX NUMBER!!! Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Natural Sciences Building Office Suite 2039 Stellenbosch University Main Campus, Merriman Avenue Stellenbosch South Africa Cell: +27 - (0)83 9479 042 Fax:+27 - (0)86 516 2782 Fax:+49 - (0)321 2125 2244 email: rai...@krugs.de Skype: RMkrug Google: r.m.k...@gmail.com
Re: execute command whenever I compile LyX file
On 12/14/2009 09:41 AM, Rainer M Krug wrote: I save it in ~/.lyx/scripts/ but it is not executed. Do I have to set it somewhere to execute the script? Do I have to set the copier to execute this script somwehere under FileFormats? Yes, you have to set the copier under Converters, for whichever converter you want to use it with. Note that you will want to use the variables mentioned in Customization 3.2 to get the arguments you need. By the way, I think you will also need to do the actual copying of the file from the temporary directory to the destination directory yourself. If you use a special copier, then LyX does not do it for you. rh
Re: execute command whenever I compile LyX file
2009/12/14 rgheck> On 12/14/2009 09:41 AM, Rainer M Krug wrote: > >> >> I save it in ~/.lyx/scripts/ but it is not executed. >> >> Do I have to set it somewhere to execute the script? Do I have to set the >> copier to execute this script somwehere under FileFormats? >> >> Yes, you have to set the copier under Converters, for whichever converter > you want to use it with. Note that you will want to use the variables > mentioned in Customization 3.2 to get the arguments you need. > Do I have to set it under Copiers File Formats, or under Converters? I thought if I specify it under File Formats - Copier, it should work. > > By the way, I think you will also need to do the actual copying of the file > from the temporary directory to the destination directory yourself. If you > use a special copier, then LyX does not do it for you. > Makes sense. Rainer > > rh > > -- NEW GERMAN FAX NUMBER!!! Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Natural Sciences Building Office Suite 2039 Stellenbosch University Main Campus, Merriman Avenue Stellenbosch South Africa Cell: +27 - (0)83 9479 042 Fax:+27 - (0)86 516 2782 Fax:+49 - (0)321 2125 2244 email: rai...@krugs.de Skype: RMkrug Google: r.m.k...@gmail.com
Re: execute command whenever I compile LyX file
On 12/14/2009 09:53 AM, Rainer M Krug wrote: 2009/12/14 rgheckOn 12/14/2009 09:41 AM, Rainer M Krug wrote: I save it in ~/.lyx/scripts/ but it is not executed. Do I have to set it somewhere to execute the script? Do I have to set the copier to execute this script somwehere under FileFormats? Yes, you have to set the copier under Converters, for whichever converter you want to use it with. Note that you will want to use the variables mentioned in Customization 3.2 to get the arguments you need. Do I have to set it under Copiers File Formats, or under Converters? I thought if I specify it under File Formats - Copier, it should work. Sorry, yes, under Formats. rh
Re: execute command whenever I compile LyX file
2009/12/14 rgheck> On 12/14/2009 09:53 AM, Rainer M Krug wrote: > >> 2009/12/14 rgheck >> >> >> >>> On 12/14/2009 09:41 AM, Rainer M Krug wrote: >>> >>> >>> I save it in ~/.lyx/scripts/ but it is not executed. Do I have to set it somewhere to execute the script? Do I have to set the copier to execute this script somwehere under FileFormats? Yes, you have to set the copier under Converters, for whichever converter >>> you want to use it with. Note that you will want to use the variables >>> mentioned in Customization 3.2 to get the arguments you need. >>> >>> >>> >> Do I have to set it under Copiers File Formats, or under Converters? I >> thought if I specify it under File Formats - Copier, it should work. >> >> >> > Sorry, yes, under Formats. > I don't get it to work - whatever I try. The copier (cp.lyx) in ~/.lyx/scriots reads: ## #!/bin/bash FROM=$1 TO=$2 TODIR=`dirname $TO` svn info $FROM > $TODIR/svninfo.txt cp $FROM $TO ### Now which copier should I define? I want to have it preferably for all output formats, for View as well as Export. But I would be happy if it works for pdf (pdflatex). So I thought, I define the copier for PDF (pdflatex) as: cp.lyx $$i $$o First observation: I have to specify the whole path, i.e: ~/.lyx/scripts/cp.lyx $$i $$o Second: it works only when I use Export - and then this is the final step, i.e. AFTER the pdf is created (obviously) and the svn info can not be included in the document. What I would need, is a way of executing the command "svn info TheLyxFile.lyx > TheTMPDIR/svninfo.txt" BEFORE LaTeX is compiling, so that the file can be included in the final document. Any tips appreciated, Rainer > > rh > > -- NEW GERMAN FAX NUMBER!!! Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Natural Sciences Building Office Suite 2039 Stellenbosch University Main Campus, Merriman Avenue Stellenbosch South Africa Cell: +27 - (0)83 9479 042 Fax:+27 - (0)86 516 2782 Fax:+49 - (0)321 2125 2244 email: rai...@krugs.de Skype: RMkrug Google: r.m.k...@gmail.com
execute command whenever I compile LyX file
Hi I want to execute a command whenever I compile a compile a LyX file (pdf, dvi, ps, ...) to save the output from svn info ... to a file to be able to use it I thought about using a copier, but which one do I have to use? Am I right in assuming, thet a copier as below would do what I want? # ## cp.lyx ## #!/bin/bash FROM=$1 TO=$2 TODIR=`dirname $TO` svn info $FROMFILE $TODIR/svninfo.txt # Where do I have to put: cp.lyx $$i $$o Rainer -- NEW GERMAN FAX NUMBER!!! Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Natural Sciences Building Office Suite 2039 Stellenbosch University Main Campus, Merriman Avenue Stellenbosch South Africa Cell: +27 - (0)83 9479 042 Fax:+27 - (0)86 516 2782 Fax:+49 - (0)321 2125 2244 email: rai...@krugs.de Skype: RMkrug Google: r.m.k...@gmail.com
Re: execute command whenever I compile LyX file
Sorry - the copier should read: ### #!/bin/bash FROM=$1 TO=$2 TODIR=`dirname $TO` svn info $FROM $TODIR/svninfo.txt ### Rainer On Mon, Dec 14, 2009 at 9:51 AM, Rainer M Krug r.m.k...@gmail.com wrote: Hi I want to execute a command whenever I compile a compile a LyX file (pdf, dvi, ps, ...) to save the output from svn info ... to a file to be able to use it I thought about using a copier, but which one do I have to use? Am I right in assuming, thet a copier as below would do what I want? # ## cp.lyx ## #!/bin/bash FROM=$1 TO=$2 TODIR=`dirname $TO` svn info $FROMFILE $TODIR/svninfo.txt # Where do I have to put: cp.lyx $$i $$o Rainer -- NEW GERMAN FAX NUMBER!!! Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Natural Sciences Building Office Suite 2039 Stellenbosch University Main Campus, Merriman Avenue Stellenbosch South Africa Cell: +27 - (0)83 9479 042 Fax:+27 - (0)86 516 2782 Fax:+49 - (0)321 2125 2244 email: rai...@krugs.de Skype: RMkrug Google: r.m.k...@gmail.com -- NEW GERMAN FAX NUMBER!!! Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Natural Sciences Building Office Suite 2039 Stellenbosch University Main Campus, Merriman Avenue Stellenbosch South Africa Cell: +27 - (0)83 9479 042 Fax:+27 - (0)86 516 2782 Fax:+49 - (0)321 2125 2244 email: rai...@krugs.de Skype: RMkrug Google: r.m.k...@gmail.com
execute command whenever I compile LyX file
Hi I want to execute a command whenever I compile a compile a LyX file (pdf, dvi, ps, ...) to save the output from svn info ... to a file to be able to use it I thought about using a copier, but which one do I have to use? Am I right in assuming, thet a copier as below would do what I want? # ## cp.lyx ## #!/bin/bash FROM=$1 TO=$2 TODIR=`dirname $TO` svn info $FROMFILE $TODIR/svninfo.txt # Where do I have to put: cp.lyx $$i $$o Rainer -- NEW GERMAN FAX NUMBER!!! Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Natural Sciences Building Office Suite 2039 Stellenbosch University Main Campus, Merriman Avenue Stellenbosch South Africa Cell: +27 - (0)83 9479 042 Fax:+27 - (0)86 516 2782 Fax:+49 - (0)321 2125 2244 email: rai...@krugs.de Skype: RMkrug Google: r.m.k...@gmail.com
Re: execute command whenever I compile LyX file
Sorry - the copier should read: ### #!/bin/bash FROM=$1 TO=$2 TODIR=`dirname $TO` svn info $FROM $TODIR/svninfo.txt ### Rainer On Mon, Dec 14, 2009 at 9:51 AM, Rainer M Krug r.m.k...@gmail.com wrote: Hi I want to execute a command whenever I compile a compile a LyX file (pdf, dvi, ps, ...) to save the output from svn info ... to a file to be able to use it I thought about using a copier, but which one do I have to use? Am I right in assuming, thet a copier as below would do what I want? # ## cp.lyx ## #!/bin/bash FROM=$1 TO=$2 TODIR=`dirname $TO` svn info $FROMFILE $TODIR/svninfo.txt # Where do I have to put: cp.lyx $$i $$o Rainer -- NEW GERMAN FAX NUMBER!!! Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Natural Sciences Building Office Suite 2039 Stellenbosch University Main Campus, Merriman Avenue Stellenbosch South Africa Cell: +27 - (0)83 9479 042 Fax:+27 - (0)86 516 2782 Fax:+49 - (0)321 2125 2244 email: rai...@krugs.de Skype: RMkrug Google: r.m.k...@gmail.com -- NEW GERMAN FAX NUMBER!!! Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Natural Sciences Building Office Suite 2039 Stellenbosch University Main Campus, Merriman Avenue Stellenbosch South Africa Cell: +27 - (0)83 9479 042 Fax:+27 - (0)86 516 2782 Fax:+49 - (0)321 2125 2244 email: rai...@krugs.de Skype: RMkrug Google: r.m.k...@gmail.com
execute command whenever I compile LyX file
Hi I want to execute a command whenever I compile a compile a LyX file (pdf, dvi, ps, ...) to save the output from "svn info ..." to a file to be able to use it I thought about using a copier, but which one do I have to use? Am I right in assuming, thet a copier as below would do what I want? # ## cp.lyx ## #!/bin/bash FROM=$1 TO=$2 TODIR=`dirname $TO` svn info $FROMFILE > $TODIR/svninfo.txt # Where do I have to put: cp.lyx $$i $$o Rainer -- NEW GERMAN FAX NUMBER!!! Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Natural Sciences Building Office Suite 2039 Stellenbosch University Main Campus, Merriman Avenue Stellenbosch South Africa Cell: +27 - (0)83 9479 042 Fax:+27 - (0)86 516 2782 Fax:+49 - (0)321 2125 2244 email: rai...@krugs.de Skype: RMkrug Google: r.m.k...@gmail.com
Re: execute command whenever I compile LyX file
Sorry - the copier should read: ### #!/bin/bash FROM=$1 TO=$2 TODIR=`dirname $TO` svn info $FROM > $TODIR/svninfo.txt ### Rainer On Mon, Dec 14, 2009 at 9:51 AM, Rainer M Krugwrote: > Hi > > I want to execute a command whenever I compile a compile a LyX file (pdf, > dvi, ps, ...) to save the output from "svn info ..." to a file to be able to > use it > > I thought about using a copier, but which one do I have to use? > > Am I right in assuming, thet a copier as below would do what I want? > > # > ## cp.lyx ## > #!/bin/bash > FROM=$1 > TO=$2 > TODIR=`dirname $TO` > svn info $FROMFILE > $TODIR/svninfo.txt > # > > Where do I have to put: > > cp.lyx $$i $$o > > Rainer > > > > -- > NEW GERMAN FAX NUMBER!!! > > Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, > UCT), Dipl. Phys. (Germany) > > Centre of Excellence for Invasion Biology > Natural Sciences Building > Office Suite 2039 > Stellenbosch University > Main Campus, Merriman Avenue > Stellenbosch > South Africa > > Cell: +27 - (0)83 9479 042 > Fax:+27 - (0)86 516 2782 > Fax:+49 - (0)321 2125 2244 > email: rai...@krugs.de > > Skype: RMkrug > Google: r.m.k...@gmail.com > > -- NEW GERMAN FAX NUMBER!!! Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Natural Sciences Building Office Suite 2039 Stellenbosch University Main Campus, Merriman Avenue Stellenbosch South Africa Cell: +27 - (0)83 9479 042 Fax:+27 - (0)86 516 2782 Fax:+49 - (0)321 2125 2244 email: rai...@krugs.de Skype: RMkrug Google: r.m.k...@gmail.com