[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: autoheader, fortran, and comments
From: |
j y |
Subject: |
Re: autoheader, fortran, and comments |
Date: |
Thu, 12 Apr 2007 05:52:41 -0700 (PDT) |
> sure there is, use a second parameter to AC_CONFIG_HEADERS, e.g.:
>
> AC_CONFIG_HEADERS([config.h],
> [mv config.h config.hx &&
> sed '/\/\*/,/\*\//s/^/!/' config.hx >config.h &&
> rm config.hx])
>
> (not tested, sorry)
>
> The option -i to sed is GNU-specific, so I replaced it to increase
> portability. And I changed the sed cmd to adapt for comments which
> span more than two lines.
>
> Have a nice day,
> Stepan Kasal
>
Hi Steve,
First of all, your general idea is just what I was looking for. It works. The
sed script, however, is slightly not what I wanted. The , addressing will
match until the first */ encountered AFTER the the line with the /*. So,
single line comments will get fortran ! comments until the end of the NEXT
comment. Anyway, I think that is an easy correction.
Thanks,
John
____________________________________________________________________________________
8:00? 8:25? 8:40? Find a flick in no time
with the Yahoo! Search movie showtime shortcut.
http://tools.search.yahoo.com/shortcuts/#news