mirror of
https://github.com/SuperBFG7/ympd
synced 2024-12-25 10:30:26 +00:00
Fix: link/remove library and pics
This commit is contained in:
parent
1df960d446
commit
9272b69c9f
@ -5,4 +5,6 @@ rm -rf debian/tmp
|
|||||||
rm -f debian/files
|
rm -f debian/files
|
||||||
rm -f htdocs/js/bootstrap-native-v4.min.js
|
rm -f htdocs/js/bootstrap-native-v4.min.js
|
||||||
rm -f htdocs/css/bootstrap.min.css
|
rm -f htdocs/css/bootstrap.min.css
|
||||||
|
rm -f htdocs/library
|
||||||
|
rm -f htdocs/pics
|
||||||
find ./ -name \*~ -delete
|
find ./ -name \*~ -delete
|
||||||
|
14
mkdebug.sh
14
mkdebug.sh
@ -1,8 +1,20 @@
|
|||||||
#/bin/sh
|
#/bin/sh
|
||||||
|
|
||||||
cp dist/htdocs/js/bootstrap-native-v4.min.js htdocs/js/
|
cp dist/htdocs/js/bootstrap-native-v4.js htdocs/js/bootstrap-native-v4.min.js
|
||||||
cp dist/htdocs/css/bootstrap.min.css htdocs/css/
|
cp dist/htdocs/css/bootstrap.min.css htdocs/css/
|
||||||
|
|
||||||
|
echo "Trying to link musicdir to library"
|
||||||
|
if [ -f /etc/mpd.conf ]
|
||||||
|
then
|
||||||
|
LIBRARY=$(grep ^music_directory /etc/mpd.conf | awk {'print $2'} | sed -e 's/"//g')
|
||||||
|
[ "$LIBRARY" != "" ] && [ ! -e htdocs/library ] && ln -s "$LIBRARY" htdocs/library
|
||||||
|
else
|
||||||
|
echo "/etc/mpd.conf not found, you must link your music_directory manually to htdocs/library"
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Linking pics directory"
|
||||||
|
[ -e htdocs/pics ] || ln -s /var/lib/mympd/pics htdocs/
|
||||||
|
|
||||||
[ -d debug ] || mkdir debug
|
[ -d debug ] || mkdir debug
|
||||||
cd debug
|
cd debug
|
||||||
cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_BUILD_TYPE=DEBUG ..
|
cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_BUILD_TYPE=DEBUG ..
|
||||||
|
Loading…
Reference in New Issue
Block a user