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