-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathconfigure
executable file
·38 lines (35 loc) · 1.39 KB
/
configure
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/bash
# Copyright (C) 2018 Jochen Weile, Roth Lab
#
# This file is part of MaveVis.
#
# MaveVis is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# MaveVis is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with MaveVis. If not, see <https://www.gnu.org/licenses/>.
# "configure" shell script, to be automatically executed by R's package installation
# function. Only serves the purpose of raising an error if external dependencies
# are not satisfied. Notifies the user of the failing dependency.
for PKG_NAME in "freesasa" "dssp" "clustalo"
do
PKG_PATH=`which $PKG_NAME`
if [ -x "$PKG_PATH" ] ; then
echo "Found: $PKG_PATH" ;
else
echo "---------------- CONFIGURATION ERROR ------------------"
echo "Configuration failed because $PKG_NAME was not found. "
echo "Please make sure it is installed, added to your PATH "
echo "and is executable!"
echo "-------------------------------------------------------"
exit 1;
fi
done
exit 0