From caf80d71bc1b294933a881d617baa29a231cdafb Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 5 Jul 2009 22:10:37 +0200 Subject: pkg: prereqs: Remaned file_in_path to executable --- bin/pkg | 5 ++++- man/7/pkg | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/bin/pkg b/bin/pkg index 864fe17..d45c05b 100755 --- a/bin/pkg +++ b/bin/pkg @@ -458,7 +458,10 @@ function check_prereqs { function perlmodule { perl -M$1 < /dev/null 2> /dev/null } - function file_in_path { + function executable file_in_path { + if [[ $0 == file_in_path ]] { + warn "'file_in_path' is deprecated, use 'executable' instead\n" + } which $1 > /dev/null } function offer_install { diff --git a/man/7/pkg b/man/7/pkg index dfe330f..bce5e79 100644 --- a/man/7/pkg +++ b/man/7/pkg @@ -152,7 +152,7 @@ Returns true if I is installed, otherwise false Returns true if I can be used by perl, otherwise false -=item B I +=item B I Returns true if I was found in the users PATH, otherwise false -- cgit v1.2.3