unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* updating guile-tools: no more --scriptsdir
@ 2008-07-16  9:58 Thien-Thi Nguyen
  2008-07-16 13:21 ` Ludovic Courtès
  0 siblings, 1 reply; 4+ messages in thread
From: Thien-Thi Nguyen @ 2008-07-16  9:58 UTC (permalink / raw)
  To: guile-devel

[-- Attachment #1: Type: text/plain, Size: 305 bytes --]

Greetings,

Please find below a patch, first in a short series, to update the guile-tools
script.  I figure this is the best way to start harmonizing Guile 1.4.x and
official Guile.  Please let me know if you would prefer it in some other
format.

thi

___________________________________________________

[-- Attachment #2: 0001-Remove-support-for-guile-tools-scriptsdir.patch --]
[-- Type: text/x-diff, Size: 2079 bytes --]

From 7006105990993e39e8a248d1203eebc0be42ef1c Mon Sep 17 00:00:00 2001
From: Thien-Thi Nguyen <ttn@gnuvola.org>
Date: Wed, 16 Jul 2008 11:50:28 +0200
Subject: [PATCH] Remove support for "guile-tools --scriptsdir".

* guile-tools.in: Delete "--scriptsdir" handling.
(help): Update.

Signed-off-by: Thien-Thi Nguyen <ttn@gnuvola.org>
---
 ChangeLog      |    7 +++++++
 guile-tools.in |   11 +----------
 2 files changed, 8 insertions(+), 10 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index da26cbf..0b58be4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2008-07-16  Thien-Thi Nguyen  <ttn@gnuvola.org>
+
+	Remove support for "guile-tools --scriptsdir".
+
+	* guile-tools.in: Delete "--scriptsdir" handling.
+	(help): Update.
+
 2008-07-06  Ludovic Courtès  <ludo@gnu.org>
 
 	* configure.in: Update to Autoconf 2.61.
diff --git a/guile-tools.in b/guile-tools.in
index a4db08f..50444f0 100644
--- a/guile-tools.in
+++ b/guile-tools.in
@@ -34,7 +34,6 @@ Usage: guile-tools --version
 
 If PROGRAM is "list" or omitted, display contents of scripts dir, otherwise
 PROGRAM is run w/ ARGS.  Options (only one of which may be used at a time):
- --scriptsdir DIR    -- Look in DIR for scripts
  --guileversion VERS -- Look in $pkgdatadir/VERS/scripts for scripts
  --source            -- Display PROGRAM source (ignore ARGS) to stdout
 
@@ -53,10 +52,6 @@ if [ -d "$mydir/scripts" -a -f "$mydir/scripts/Makefile.am" ] ; then
     default_scriptsdir=`(cd $mydir/scripts ; pwd)`
 fi
 
-# option processing -- basically, you can override either the script dir
-# completely, or just the guile version.  we choose implementation simplicity
-# over orthogonality.
-
 case x"$1" in
 x--version)
     echo $0 $guileversion
@@ -68,11 +63,7 @@ x--help)
     ;;
 esac
 
-if [ x"$1" = x--scriptsdir ] ; then
-    user_scriptsdir=$2
-    shift
-    shift
-elif [ x"$1" = x--guileversion ] ; then
+if [ x"$1" = x--guileversion ] ; then
     user_scriptsdir=$pkgdatadir/$2/scripts
     shift
     shift
-- 
1.5.3.5


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-07-18 10:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-16  9:58 updating guile-tools: no more --scriptsdir Thien-Thi Nguyen
2008-07-16 13:21 ` Ludovic Courtès
2008-07-16 19:45   ` Thien-Thi Nguyen
2008-07-18 10:04     ` Ludovic Courtès

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).