add option -d in order to indicate the path to configuration files
[zik.git] / dependencies
blobcc81bd563c0cadc6e8316ae6de6cb228d449779b
1 #!/bin/sh
2 #Try to check if ZiK's dependencies are installed.
4 EXIT=0
5 #################################
6 #Checking for global dependencies
7 #################################
8 echo "Checking global dependencies:"
10 TEST=0
11 if env --version 1> /dev/null 2>&1
12 then
13 echo "Checking env..Yes"
14 else
15 echo "Error: you have to install env. http://www.gnu.org/software/coreutils/"
16 TEST=1
17 EXIT=1
19 if test "$TEST" -eq 0
20 then
21 (test -f /usr/bin/env) || {
22 echo "Error: env is not installed in /usr/bin. Try a symbolic link."
23 EXIT=1
27 if ruby --version 1> /dev/null 2>&1
28 then
29 echo "Checking ruby..Yes"
30 else
31 echo "Error: ruby is not installed. http://www.ruby-lang.org/"
32 EXIT=1
35 if test "$EXIT" -eq 1
36 then
37 echo "You should install the required dependencies and run this script once more."
38 echo
39 echo "ERROR"
40 exit 1
42 #############################
43 #Checking for ruby librairies
44 #############################
45 echo "Checking ruby librairies:"
47 if (ruby -e "require 'gst0.10'")
48 then
49 echo "Checking gst0.10..Yes"
50 else
51 echo "Error: Cannot find ruby-gstreamer0.10. https://trac.luon.net/ruby-gstreamer0.10"
52 EXIT=1
55 if (ruby -e "require 'gtk2'")
56 then
57 echo "Checking gtk2..Yes"
58 else
59 echo "Error: cannot find ruby-gtk2. http://ruby-gnome2.sourceforge.jp/"
60 EXIT=1
63 if (ruby -e "require 'taglib'")
64 then
65 echo "Checking taglib..Yes"
66 else
67 echo "Error: Cannot find ruby-taglib. http://www.hakubi.us/ruby-taglib/"
68 EXIT=1
72 if (ruby -e "require 'gettext'")
73 then
74 echo "Checking gettext..Yes"
75 else
76 echo -ne "Error: Cannot find ruby-gettext-package. http://rubyforge.org/projects/gettext"
77 EXIT=1
80 if test "$EXIT" -eq 1
81 then
82 echo "You should install the required dependencies."
83 echo
84 echo "ERROR"
85 exit 1
88 exit 0