[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Stow-devel] address@hidden: stow environment variable patch]
From: |
Guillaume Morin |
Subject: |
[Stow-devel] address@hidden: stow environment variable patch] |
Date: |
Sat, 26 Jan 2002 02:07:41 +0100 |
User-agent: |
Mutt/1.3.27i |
Looks like a good idea, I will apply soon unless someone complains.
----- Forwarded message from David Caldwell <address@hidden> -----
From: David Caldwell <address@hidden>
To: address@hidden
Subject: stow environment variable patch
Date: Fri, 25 Jan 2002 14:04:40 -0800
X-Mailer: Mulberry/2.1.2 (Linux/x86)
Hello,
I sent this to Bob Glickstein a couple of years ago but never heard
anything. Since I see you just released a new version of stow, I thought
you might be interested in a little patch I use. This patch makes stow much
nicer yet should have no impact on the installed base--It just adds support
for an environment variable (STOW_DIR) so that I don't have to type "stow
-d /usr/local/stow" every time I stow something. :)
-David
--- stow.in Sat Jan 5 03:27:01 2002
+++ stow.in.david Tue Jan 22 15:04:24 2002
@@ -40,6 +40,9 @@
$Target = undef;
$Restow = 0;
+# let environment variable override current directory
+# --dir command line arg will in turn override this
+$Stow = $ENV{'STOW_DIR'} if defined $ENV{'STOW_DIR'};
# FIXME: use Getopt::Long
while (@ARGV && ($_ = $ARGV[0]) && /^-/) {
----- End forwarded message -----
--
Guillaume Morin <address@hidden>
A part of me left that only you knew will never be understood (RHCP)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Stow-devel] address@hidden: stow environment variable patch],
Guillaume Morin <=