-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
38 lines (34 loc) · 859 Bytes
/
install.sh
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
echo "Installing imamLL library..."
sleep 2
cd src
if uname -p | grep -q x86_64; then
rm /usr/lib/x86_64-linux-gnu/libimamll.*
cp libimamll.so /usr/lib/x86_64-linux-gnu/
if [ "$?" -ne 0 ]
then
echo "Error installing imamLL library"
exit 1
fi
cp imamll.h /usr/include/
if [ "$?" -ne 0 ]
then
echo "Error installing imamLL header"
exit 1
fi
else
rm /usr/lib/i386-linux-gnu/libimamll.*
cp libimamll.so /usr/lib/i386-linux-gnu/
if [ "$?" -ne 0 ]
then
echo "Error installing imamLL library"
exit 1
fi
cp imamll.h /usr/include/
if [ "$?" -ne 0 ]
then
echo "Error installing imamLL header"
exit 1
fi
fi
exit 0