Package: rubber
Version: 1.1-1
Severity: normal

Hi!

First, thank you very much for writing and maintaining rubber. This is a
lifesaver for me. I already thought I would have to learn how to write
makefiles. :)

Second, I think I found a problem with user-definded rules. But I may as
well do something wrong. I have a custom rules.ini which rubber tries to
use. It looks like this:

|[gnuplot-tex]
|target = (.*)\.(tex|latex)
|source = \1.dat
|cost = 0
|rule = shell
|command = gnuplot \1.plot; epstopdf \1.eps
|message = running gnuplot to plot data from $source as $target

[This may look a little bit strange, but gnuplot produces an eps file
 and a tex file in all my gnuplot scripts with the extension .plot.
 Since I use pdftex, I have to convert the eps to pdf to be able to
 \includegraphics{} it. I am not yet sure whether I may run two commands
 separated by a ";", but I don't think this is related to my problem.]

rubber-info --rules shows the correct dependency (some paths stripped):

|img/results/runtime.tex: img/results/runtime.dat

But when I run "rubber --pdf -f doc" I get:

|running gnuplot to plot data from img/results/runtime.dat as
| img/results/levenshtein-runtime.tex...
|         Cannot open load file '\1.plot;'
|         line 0: util.c: No such file or directory
|
|'gnuplot' failed

Obviously, rubber doesn't replace \1 with the first group in my target
pattern. I am not a regexp guru but since my pattern looks exactly like
the patterns in the default rules.ini, I think it should work.

Sincerely,
J.

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 
'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16.11
Locale: LANG=en_US, [EMAIL PROTECTED] (charmap=ISO-8859-15)

Versions of packages rubber depends on:
ii  python                        2.3.5-5    An interactive high-level object-o
ii  tetex-bin                     3.0-16     The teTeX binary files

rubber recommends no packages.

-- no debconf information

Attachment: signature.asc
Description: Digital signature

Reply via email to