From: Sergio Durigan Junior <sergiodj@redhat.com>
To: "Pierre Muller" <pierre.muller@ics-cnrs.unistra.fr>
Cc: <gdb-patches@sourceware.org>
Subject: Re: [RFA] Add scripts to generate ARI web pages to gdb/contrib/ari directory
Date: Sat, 26 May 2012 00:12:00 -0000 [thread overview]
Message-ID: <m3mx4viyvx.fsf@redhat.com> (raw)
In-Reply-To: <001201cd3547$377188b0$a6549a10$@muller@ics-cnrs.unistra.fr> (Pierre Muller's message of "Sat, 19 May 2012 00:40:24 +0200")
On Friday, May 18 2012, Pierre Muller wrote:
> Here is a RFA for inclusion of scripts to gdb/contrib/ari.
As Jan pointed out, the patch does not apply.
I am assuming that, if you are asking for opinions, then you are
volunteering to fix the ARI scripts :-). Here are my opinions. Thanks
a lot for doing this!
> Index: contrib/ari/create-web-ari-in-src.sh
> ===================================================================
> RCS file: contrib/ari/create-web-ari-in-src.sh
> diff -N contrib/ari/create-web-ari-in-src.sh
> --- /dev/null 1 Jan 1970 00:00:00 -0000
> +++ contrib/ari/create-web-ari-in-src.sh 18 May 2012 22:31:42 -0000
Is this script called in some cronjob, or is it intended to be called
directly by the user? I don't see it being called anywhere in the
sources. If it is called from a cronjob, then maybe it's worth
providing an example of a simple crontab script which would work for
this purpose.
Also, if it is supposed to be called by the user, then I think it should
accept command line arguments.
> @@ -0,0 +1,68 @@
> +#! /bin/sh
> +
> +# GDB script to create web ARI page directly from within gdb/ari directory.
> +#
> +# Copyright (C) 2012 Free Software Foundation, Inc.
Is this a new script? If not, I believe the copyright notice should
include the previous years of existence.
> +# This file is part of GDB.
> +#
> +# This program is free software; you can redistribute it and/or modify
> +# it under the terms of the GNU General Public License as published by
> +# the Free Software Foundation; either version 3 of the License, or
> +# (at your option) any later version.
> +#
> +# This program is distributed in the hope that it will be useful,
> +# but WITHOUT ANY WARRANTY; without even the implied warranty of
> +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> +# GNU General Public License for more details.
> +#
> +# You should have received a copy of the GNU General Public License
> +# along with this program. If not, see <http://www.gnu.org/licenses/>.+
> +set -x
> +
> +# Determine directory of current script.
> +scriptpath=`dirname $0`
Since we are now putting the scripts in the main tree, which IMO is an
incentive for everyone to run them and check the results, I believe we
cannot always assume that certain programs are available at the user's
machine. For this reason, maybe it's good to check if the executables
(like `dirname') being used in these sources actually exist?
> Index: contrib/ari/gdb_ari.sh
> ===================================================================
> RCS file: contrib/ari/gdb_ari.sh
> diff -N contrib/ari/gdb_ari.sh
> --- /dev/null 1 Jan 1970 00:00:00 -0000
> +++ contrib/ari/gdb_ari.sh 18 May 2012 22:31:42 -0000
> +awk -- '
> +BEGIN {
What do you think of creating a new file which would contain this giant
awk script? I see there are many "sections" in this script, so maybe we
could even separate those script into logical files and use multiple `-f
FILE' arguments to awk. But I guess only putting this huge script into
a separate file is enough for now...
Thanks,
--
Sergio
next prev parent reply other threads:[~2012-05-26 0:12 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-18 22:41 Pierre Muller
2012-05-25 8:09 ` PING " Pierre Muller
2012-05-25 19:47 ` Jan Kratochvil
2012-05-26 12:41 ` [RFA-v2] " Pierre Muller
2012-05-27 4:06 ` Sergio Durigan Junior
2012-05-27 19:53 ` Pierre Muller
2012-05-27 22:03 ` Sergio Durigan Junior
2012-05-28 18:34 ` [RFA-v3] " Pierre Muller
2012-05-28 18:38 ` Pierre Muller
2012-05-29 13:02 ` Joel Brobecker
2012-05-29 13:13 ` Pedro Alves
2012-05-31 6:56 ` Pierre Muller
2012-05-31 15:59 ` Joel Brobecker
2012-06-14 12:36 ` [RFA-v4] " Pierre Muller
2012-06-14 16:02 ` Joel Brobecker
2012-06-14 16:14 ` Pierre Muller
2012-06-14 16:22 ` Joel Brobecker
2012-08-21 10:27 ` About RFA for " Pierre Muller
2012-08-21 22:36 ` Sergio Durigan Junior
[not found] ` <50336283.a2db440a.600c.105dSMTPIN_ADDED@mx.google.com>
2012-08-21 22:25 ` Doug Evans
2012-09-26 22:15 ` [RFA-v5] " Pierre Muller
2012-10-08 21:21 ` Pierre Muller
2012-10-09 3:45 ` Sergio Durigan Junior
2012-10-09 5:52 ` Joel Brobecker
2012-10-22 21:04 ` Joel Brobecker
2012-10-23 15:21 ` Pierre Muller
2012-10-23 17:13 ` Sergio Durigan Junior
2012-10-30 15:16 ` Pierre Muller
[not found] ` <4332.56673063642$1351610219@news.gmane.org>
2012-11-01 19:57 ` Tom Tromey
2012-11-01 22:39 ` Pierre Muller
2012-06-22 16:10 ` [RFA-v3] " Tom Tromey
2012-05-26 0:12 ` Sergio Durigan Junior [this message]
[not found] <4fb6d008.8727440a.10f3.1718SMTPIN_ADDED@mx.google.com>
2012-05-25 19:52 ` [RFA] " Pedro Alves
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m3mx4viyvx.fsf@redhat.com \
--to=sergiodj@redhat.com \
--cc=gdb-patches@sourceware.org \
--cc=pierre.muller@ics-cnrs.unistra.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox