forked from JesseFarebro/deadbeef-librarybrowser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
userinstall.sh
executable file
·30 lines (25 loc) · 1.13 KB
/
userinstall.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
#!/bin/sh
/bin/mkdir -pv ${HOME}/.local/lib/deadbeef
## GTK2 version
if [ -f ./.libs/ddb_misc_filebrowser_GTK2.so ]; then
/usr/bin/install -v -c -m 644 ./.libs/ddb_misc_filebrowser_GTK2.so ${HOME}/.local/lib/deadbeef/
else
/usr/bin/install -v -c -m 644 ./ddb_misc_filebrowser_GTK2.so ${HOME}/.local/lib/deadbeef/
fi
## GTK3 version
if [ -f ./.libs/ddb_misc_filebrowser_GTK3.so ]; then
/usr/bin/install -v -c -m 644 ./.libs/ddb_misc_filebrowser_GTK3.so ${HOME}/.local/lib/deadbeef/
else
/usr/bin/install -v -c -m 644 ./ddb_misc_filebrowser_GTK3.so ${HOME}/.local/lib/deadbeef/
fi
CHECK_PATHS="/usr/local/lib/deadbeef /usr/lib/deadbeef"
for path in $CHECK_PATHS; do
if [ -d $path ]; then
if [ -f $path/ddb_misc_filebrowser.so ]; then
echo "Warning: And old version of the filebrowser plugin is present in $path, you should remove it to avoid conflicts!"
fi
if [ -f $path/ddb_misc_filebrowser_GTK2.so -o -f $path/ddb_misc_filebrowser_GTK3.so ]; then
echo "Warning: Some version of the filebrowser plugin is present in $path, you should remove it to avoid conflicts!"
fi
fi
done