[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Use of sed in PDFPIC macro with OpenBSD
From: |
address@hidden |
Subject: |
Re: Use of sed in PDFPIC macro with OpenBSD |
Date: |
Mon, 13 Dec 2021 09:33:47 +0000 |
I'll post the patch in the bug report.
Hans
>
>
>
>
>
> Op Wed Dec 08 2021 22:34:24 GMT+0100 (Central European Standard Time)
> schreef Dave Kemper <saint.snit@gmail.com>:
>
> ---------- Oorspronkelijk bericht ----------
>
>
>
>
>
> On 12/7/21, Hans Bezemer <hbezemer@kliksafe.nl> wrote:
> > Changed the
> appropriate lines into:
> > . sy pdfinfo @$1 | \
> > awk '/^Page size:/
> {print ".nr pdf-wid (p;"$3")"; \
> > print ".nr pdf-ht (p;"$5")"}' \
> >>
> /tmp/pdfpic\n[$$]
> >
> > This seems to work fine.
> > I've attached a patch
> file.
>
> If this is portable (I don't know awk at all), it would also fix
> bug
> #58206 (http://savannah.gnu.org/bugs/?58206), since it eliminates the
> grep that is causing that problem. Might be worth posting your patch
> in
> that bug report.
>
>
>