summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-09-12 12:02:52 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2009-09-12 12:02:52 +0200
commitc2c1c8b0499cb3938bb148e6c1d0537d5ee8d188 (patch)
treeb3a11ac12d85b412c5ccc0d1f68395fd6a80e3f1 /bin
parente45152d8c98a2fcb80c5b69abe97c440291bd789 (diff)
Removed legacy support for 'file_in_path' and 'require' in prereqs scripts
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ct10
1 files changed, 2 insertions, 8 deletions
diff --git a/bin/ct b/bin/ct
index 0bf6cb4..4071b73 100755
--- a/bin/ct
+++ b/bin/ct
@@ -464,19 +464,13 @@ function check_prereqs {
function perlmodule {
perl -M$1 < /dev/null 2> /dev/null
}
- function executable file_in_path {
- if [[ $0 == file_in_path ]] {
- warn "'file_in_path' is deprecated, use 'executable' instead\n"
- }
+ function executable {
which $1 > /dev/null
}
function offer_install {
install+=$1
}
- function depend require {
- if [[ $0 == require ]] {
- warn "'require' is depracated, use 'depend' instead\n"
- }
+ function depend {
if [[ $1 == 'package' ]] {
is_installed $2 || offer_install $2
} else {