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.

        Jakub

Reply via email to