[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Groff] Pdfmark
From: |
Keith MARSHALL |
Subject: |
Re: [Groff] Pdfmark |
Date: |
Tue, 28 Sep 2004 10:31:54 +0100 |
Robert Goulding wrote:
> OK, I'm trying out pdfmark on my Mac; I run the command ./pdfmake
> pdfmark from the shell (bash and tcsh tried) and I get the following
> output - Robert.
>
> echo "PARTNAMES =" > pdfmark-parts.txt
> test -z "`sed -n '/^\.CS/,/^\.CE/p' pdfmark.ms`" || echo "%-fp.ps" >>
> pdfmark-parts.txt
> ]*$' pdfmark.ms`" || echo "%-toc.ps" >> pdfmark-parts.txt
> echo "%-body.ps" >> pdfmark-parts.txt
> sed -e:loop -eN -e's/\n/ /g' -e'b loop' pdfmark-parts.txt >
> pdfmark-parts.mk
> make -f pdfmake --no-print-directory PARTSLIST=pdfmark-parts.mk
> pdfmark.pdf
> make -f pdfmake --no-print-directory PARTSLIST=pdfmark-parts.mk
> pdfmark.pdf
.
. [lots of similar lines snipped ...]
.
> make[72]: vfork: Resource temporarily unavailable
> make[71]: *** [pdfmark.pdf] Error 2
.
. [lots more similar lines snipped ...]
.
> make[71]: *** [pdfmark.pdf] Error 2
> rm pdfmark-parts.mk pdfmark-parts.txt
> make[1]: *** [pdfmark] Error 2
> make: *** [pdfmark] Error 2
Hi Robert,
I suspect the problem here may be something to do with the differing
EOL conventions for *nix, Win32 and Mac text files. I've tested on
Intel GNU/Linux and Win32, but I don't have access to a Mac, so I'd
appreciate your help to debug this.
Your output looks normal, up to the point where pdfmark-parts.mk is
written. (The line beginning "]*$'" may appear odd, but it is simply
the result of executing an egrep command with a CR in the match
expression; [this is to catch the CR from the Win32 CRLF line ending,
when the input file is edited with an Win32 editor, but processed in
a *nix make environment, such as I have with MSYS on my Win2K box]).
After creating pdfmark-parts.mk, your make goes into a recursive
loop. This would occur if PARTNAMES is not defined in the secondary
make, and this definition is obtained by reading pdfmark-parts.mk,
so the first thing to check is that its content is correct. You can
persuade pdfmake to create just pdfmark-parts.mk, by executing:
./pdfmake TMACTYPE=ms pdfmark-parts.mk
Now, inspect the content of pdfmark-parts.mk -- it should contain
exactly one line:
PARTNAMES = %-fp.ps %-toc.ps %-body.ps
Once we've determined whether this is correct, or not, then we can
start thinking about how to proceed further. (To speed things up,
if pdfmark-parts.mk doesn't look correct, please post *both* it,
and the output of "od -b pdfmark-parts.mk", so I can have a look).
Best regards,
Keith.