stow dir now defaults to env variable if set

This commit is contained in:
Guillaume Morin 2002-01-26 15:21:11 +00:00
parent 13d460a5ba
commit e00b84ec84
4 changed files with 10 additions and 3 deletions

View file

@ -1,3 +1,8 @@
Sat Jan 26 16:15:21 2002 Guillaume Morin <gmorin@gnu.org>
* stow.in: if $ENV{'STOW_DIR'} is set, this becomes the default
Stow directory.
Sun Jan 20 12:41:39 2002 Guillaume Morin <gmorin@gnu.org> Sun Jan 20 12:41:39 2002 Guillaume Morin <gmorin@gnu.org>
* stow.in: fixed a bug if the stow directory is /foo. * stow.in: fixed a bug if the stow directory is /foo.

3
stow.8
View file

@ -146,7 +146,8 @@ The target of a relative symlink is
computed starting from the symlink's own directory. Stow only creates computed starting from the symlink's own directory. Stow only creates
relative symlinks. relative symlinks.
.SH OPTIONS .SH OPTIONS
The stow directory is assumed to be the current directory, and the The stow directory is assumed to be the value of the 'STOW_DIR' environment
variable or if unset the current directory, and the
target directory is assumed to be the parent of the current directory target directory is assumed to be the parent of the current directory
(so it is typical to execute (so it is typical to execute
.I stow .I stow

View file

@ -36,7 +36,7 @@ $Delete = 0;
$NotReally = 0; $NotReally = 0;
$Verbose = 0; $Verbose = 0;
$ReportHelp = 0; $ReportHelp = 0;
$Stow = undef; $Stow = defined $ENV{'STOW_DIR'} ? $ENV{'STOW_DIR'} : undef;
$Target = undef; $Target = undef;
$Restow = 0; $Restow = 0;
$Force = 0; $Force = 0;

View file

@ -215,7 +215,8 @@ The syntax of the @code{stow} command is:
stow @var{[options]} @var{package @dots{}} stow @var{[options]} @var{package @dots{}}
@end example @end example
The stow directory is assumed to be the current directory, and the The stow directory is assumed to be the value of the 'STOW_DIR' environment
variable, or if unset the current directory, and the
target directory is assumed to be the parent of the current directory target directory is assumed to be the parent of the current directory
(so it is typical to execute @code{stow} from the directory (so it is typical to execute @code{stow} from the directory
@file{/usr/local/stow}). Each @var{package} is the name of a package in @file{/usr/local/stow}). Each @var{package} is the name of a package in