summaryrefslogtreecommitdiffstats
path: root/perl-install/commands.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>1999-08-23 21:01:21 +0000
committerPascal Rigaux <pixel@mandriva.com>1999-08-23 21:01:21 +0000
commit33280055c72fd53c4f85db213d7415ca0a064a7e (patch)
tree533c9ae5bdc1567c3e06f708478822e16c10ab3a /perl-install/commands.pm
parent9055935d2adbdb679ec1ccdbd728ba2c542a60f8 (diff)
downloaddrakx-33280055c72fd53c4f85db213d7415ca0a064a7e.tar
drakx-33280055c72fd53c4f85db213d7415ca0a064a7e.tar.gz
drakx-33280055c72fd53c4f85db213d7415ca0a064a7e.tar.bz2
drakx-33280055c72fd53c4f85db213d7415ca0a064a7e.tar.xz
drakx-33280055c72fd53c4f85db213d7415ca0a064a7e.zip
no_comment
Diffstat (limited to 'perl-install/commands.pm')
-rw-r--r--perl-install/commands.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/perl-install/commands.pm b/perl-install/commands.pm
index 4a4340f2f..44a49a17f 100644
--- a/perl-install/commands.pm
+++ b/perl-install/commands.pm
@@ -23,6 +23,8 @@ sub getopts {
@r;
}
+sub true { exit 0 }
+sub false { exit 1 }
sub cat { @ARGV = @_; print while <> }
sub which { ARG: foreach (@_) { foreach my $c (split /:/, $ENV{PATH}) { -x "$c/$_" and print("$c/$_\n"), next ARG; }}}
sub dirname_ { print dirname(@_), "\n" }