[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: FYI: support .f03 and .F03
From: |
Gary V. Vaughan |
Subject: |
Re: FYI: support .f03 and .F03 |
Date: |
Sun, 25 Feb 2007 21:24:46 -0800 |
On 25 Feb 2007, at 20:43, Ralf Wildenhues wrote:
* Gary V. Vaughan wrote on Mon, Feb 26, 2007 at 05:24:18AM CET:
Dusting off my sed-fu, and with wider quoting for Eric ;-)
func_version ()
{[
$SED -n '
:a
/[1-9][0-9]*[,-]$/N; s/[1-9][0-9]*[,-]\n# *//; ta
Exactly one space between "t" and "a".
Okay, I'll reread the sed portability stuff in autoconf.info :-?
/^# '$PROGRAM' (GNU /,/# warranty; / {
s/^# //
s/^ *$//
/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/
"s" missing at beginning of line.
Thanks, bad cut n paste.
p
}' < "$progpath"
exit $?
]}
Then it looks almost good, except that I think we should be
tolerant to
people who put trailing spaces in their files. I guess if you change
the second line to
/[1-9][0-9]*[,-][ ]*$/N; s/[1-9][0-9]*[,-][ ]*\n# *//; t a
Good call.
that should be ok. A bummer that this won't work with UNICOS sed any
more. I successfully ran CVS Libtool on the cray-cyber museum
system a
couple of years ago. Sigh.
:-O
Okay to apply the attached?
Cheers,
Gary
--
())_. Email me: address@hidden
( '/ Read my blog: http://blog.azazil.net
/ )= ...and my book: http://sources.redhat.com/autobook
`(_~)_ Join my AGLOCO Network: http://www.agloco.com/r/BBBS7912
311-gary-allow-multiline-copyright-years.diff
Description: Binary data
PGP.sig
Description: This is a digitally signed message part