From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thien-Thi Nguyen Newsgroups: gmane.lisp.guile.devel Subject: Re: updating guile-tools: no more --scriptsdir Date: Wed, 16 Jul 2008 21:45:10 +0200 Message-ID: <873am98vg9.fsf@ambire.localdomain> References: <87bq0y881m.fsf@ambire.localdomain> <87tzeqezgz.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: ger.gmane.org 1216238186 4401 80.91.229.12 (16 Jul 2008 19:56:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 16 Jul 2008 19:56:26 +0000 (UTC) Cc: guile-devel@gnu.org To: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Wed Jul 16 21:57:13 2008 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KJD7Y-0003qQ-EG for guile-devel@m.gmane.org; Wed, 16 Jul 2008 21:57:04 +0200 Original-Received: from localhost ([127.0.0.1]:56117 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KJD6g-0005IS-0W for guile-devel@m.gmane.org; Wed, 16 Jul 2008 15:56:10 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KJD6Q-0005DB-0y for guile-devel@gnu.org; Wed, 16 Jul 2008 15:55:54 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KJD6O-0005CQ-9M for guile-devel@gnu.org; Wed, 16 Jul 2008 15:55:53 -0400 Original-Received: from [199.232.76.173] (port=57961 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KJD6N-0005CH-PB for guile-devel@gnu.org; Wed, 16 Jul 2008 15:55:51 -0400 Original-Received: from [151.61.143.90] (port=41149 helo=ambire.localdomain) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KJD6N-00011P-GR for guile-devel@gnu.org; Wed, 16 Jul 2008 15:55:52 -0400 Original-Received: from ttn by ambire.localdomain with local (Exim 4.63) (envelope-from ) id 1KJD3a-0004Td-OS; Wed, 16 Jul 2008 21:52:58 +0200 In-Reply-To: <87tzeqezgz.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Wed, 16 Jul 2008 15:21:48 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. X-Greylist: delayed 35671 seconds by postgrey-1.27 at monty-python; Wed, 16 Jul 2008 15:55:51 EDT X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:7388 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable () ludo@gnu.org (Ludovic Court=C3=A8s) () Wed, 16 Jul 2008 15:21:48 +0200 I've never actually used that option, but can you provide rationale for removing it? I'd rather not remove it without a good reason to do so. It's not useful (you said it yourself). I bet that if we were to omit the removal of this misfeature from NEWS, no one would even notice. (Same goes for --guileversion and --help-all, which are next up on the chopping block.) For a preview of where i imagine official Guile's guile-tools should go (not far), please find attached the Guile 1.4.1.118 variant. In terms of (re-)design rationale, the idea is to move away from gratuitous variability: [It was (sort of) nice that guile-tools could be used to mux (dispatch) other functionality, but that sort of flexibility is available by more standard means (e.g., set PATH env var).] and towards reliable reflection: [Many programs dispatched by guile-tools useful for maintaining packages (config/build/install) have an invocation context of either the configure script (produced by autoconf) or a makefile (possibly, but not always, produced by automake). So, it's a good idea to mesh well w/ the autoconf spirit of probing features (instead of simply version numbers).] I hope this explains the thought behind the 1.4.1.118 guile-tools, which is the basis for this set of proposed (and to be proposed) changes. You can see the 1.4.1.118 guile-tools in action in Guile-PG's configure.in (unreleased, see ), lines 51 and 52, for example. thi ________________________________________________________________ --=-=-= Content-Type: application/octet-stream Content-Disposition: attachment; filename=guile-tools.in #!/bin/sh # Copyright (C) 2002, 2003, 2004, 2007, 2008 Thien-Thi Nguyen # Copyright (C) 2001 Free Software Foundation, Inc. # # 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, 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 software; see the file COPYING. If not, write to # the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, # Boston, MA 02110-1301, USA. # Usage: See `help' func below. # # TODO # - handle pre-install invocation # - "full" option processing (but see comment below) # # Author: Thien-Thi Nguyen help () { cat <