[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 20:24:18 -0800 |
Hi Ralf,
On 25 Feb 2007, at 20:05, Ralf Wildenhues wrote:
Welcome back! Or welcome, whereever you are now!
Thanks. Nice to see you active in the libtool lists again too :-)
I'm convalescing in San Diego, returning to England in 10 days or so
with new motorcycles. And then on to the Philippines a few months
later.
Once I've caught up with my gnu mailing list backlog, I'll have about
10 hours a week or so to help out with libtool-2.0 (and then m4-2.0)
for a few months :-)
* Gary V. Vaughan wrote on Mon, Feb 26, 2007 at 12:03:48AM CET:
On 21 Jan 2007, at 06:58, Ralf Wildenhues wrote:
looks nice. Somebody should fix the func_version sed script to
allow
multiple lines in copyright year lists to avoid long lines;
func_version ()
{
$SED -n '/^# '$PROGRAM' (GNU /,/# warranty; / {
s/^# //
s/^ *$//
:a
/[[1-9]][[0-9]]*[[,-]]$/N; s/[[1-9]][[0-9]]*[[,-]]\n# *//; ta
s/\((C)\)[[ 0-9,-]]*\( [[1-9]][[0-9]]*\)/\1\2/
p
}' < "$progpath"
exit $?
}
Okay to apply (with ChangeLog etc)?
Not quite. Inside sed { }, semicolons and address ranges are
disallowed
by POSIX, see the note in the Autoconf manual.
Bleh :-(
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
/^# '$PROGRAM' (GNU /,/# warranty; / {
s/^# //
s/^ *$//
/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/
p
}' < "$progpath"
exit $?
]}
FWIW, we could also just write 2003-2007 in the copyright
statement, no?
That would certainly satisfy the existing func_version sed script, but
I believe RMS dislikes such ranges as they do not make it clear whether
all of the intervening years are covered, or whether they are just the
earliest and latest extremes. There was some painstaking effort several
years ago to expand such ranges in a project I was watching (perhaps
Emacs, but I don't remember for sure). If you do want to do that, best
check with RMS first...
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
PGP.sig
Description: This is a digitally signed message part