> On 29 Mar 2025, at 15:56, Jakub Jelinek <ja...@redhat.com> wrote: > > On Sat, Mar 29, 2025 at 03:50:54PM +0000, Iain Sandoe wrote: >>> I'm not sure if sed -E is portable enough (sure, I know it is in POSIX, but >>> that is not enough). >>> How about just >>> sed -e '/^#include/s,"\([^"]*.h\)","../../libgcobol/\1",' $& > $@ >> >> This, unfortunately, works too well (with s/&/^) .. because it also >> processes #include “config.h” >> which then points to a non-existent file. I think we want to include config >> for both FE and >> library (so we cannot get around it by indenting the config.h include - well >> we could, but …) > > Neither libgcobol/charmaps.cc nor libgcobol/valconv.cc has config.h include. but it’s an approved patch (just waiting for the main config change to be reviewed) and needed for the other lib changes. I’ll investigate if we could find a way to drop it fro those two files. Iain
- Re: [PATCH] cobol: Fix up cobol/{charmaps,valconv}.cc rules Richard Biener
- Re: [PATCH] cobol: Fix up cobol/{charmaps,valconv}.cc rules Simon Sobisch
- Re: [PATCH] cobol: Fix up cobol/{charmaps,valconv}.cc ... Jakub Jelinek
- Re: [PATCH] cobol: Fix up cobol/{charmaps,valconv}... Simon Sobisch
- RE: [PATCH] cobol: Fix up cobol/{charmaps,valconv}.cc rules Robert Dubner
- Re: [PATCH] cobol: Fix up cobol/{charmaps,valconv}.cc rules Iain Sandoe
- Re: [PATCH] cobol: Fix up cobol/{charmaps,valconv}.cc ... Jakub Jelinek
- Re: [PATCH] cobol: Fix up cobol/{charmaps,valconv}... Iain Sandoe
- Re: [PATCH] cobol: Fix up cobol/{charmaps,valc... Jakub Jelinek
- Re: [PATCH] cobol: Fix up cobol/{charmaps,... Iain Sandoe
- Re: [PATCH] cobol: Fix up cobol/{char... Jakub Jelinek
- Re: [PATCH] cobol: Fix up cobol/{... Iain Sandoe
- RE: [PATCH] cobol: Fix up cobol/{... Robert Dubner
- RE: [PATCH] cobol: Fix up cobol/{... Robert Dubner
- Re: [PATCH] cobol: Fix up cobol/{... Iain Sandoe
- RE: [PATCH] cobol: Fix up cobol/{... Robert Dubner
- Re: [PATCH] cobol: Fix up cobol/{... Jakub Jelinek