forked from JesseFarebro/deadbeef-librarybrowser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
quickinstall.sh
executable file
·28 lines (23 loc) · 1.21 KB
/
quickinstall.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
#!/bin/sh
## Remove old versions
rm -fv /usr/local/lib/deadbeef/ddb_misc_filebrowser.so*
rm -fv /usr/local/lib/deadbeef/ddb_misc_filebrowser_GTK2.so*
rm -fv /usr/local/lib/deadbeef/ddb_misc_filebrowser_GTK3.so*
## GTK2 version
if [ -f ./.libs/ddb_misc_filebrowser_GTK2.so ]; then
/usr/bin/install -v -c -m 644 ./.libs/ddb_misc_filebrowser_GTK2.so /usr/local/lib/deadbeef/
else
/usr/bin/install -v -c -m 644 ./ddb_misc_filebrowser_GTK2.so /usr/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 /usr/local/lib/deadbeef/
else
/usr/bin/install -v -c -m 644 ./ddb_misc_filebrowser_GTK3.so /usr/local/lib/deadbeef/
fi
if [ -f ${HOME}/.local/lib/deadbeef/ddb_misc_filebrowser.so ]; then
echo "Warning: An old version of the filebrowser plugin is present in ${HOME}/.local/lib/deadbeef/, you should remove it to avoid conflicts!"
fi
if [ -f ${HOME}/.local/lib/deadbeef/ddb_misc_filebrowser_GTK2.so -o -f ${HOME}/.local/lib/deadbeef/ddb_misc_filebrowser_GTK3.so ]; then
echo "Warning: Some version of the filebrowser plugin is present in ${HOME}/.local/lib/deadbeef/, you should remove it to avoid conflicts!"
fi