From 9272b69c9f531a6b72e8ebe795d1bf531ded3771 Mon Sep 17 00:00:00 2001 From: jcorporation Date: Thu, 20 Sep 2018 21:36:38 +0100 Subject: [PATCH] Fix: link/remove library and pics --- mkclean.sh | 2 ++ mkdebug.sh | 14 +++++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/mkclean.sh b/mkclean.sh index 0ccc345..50d573c 100755 --- a/mkclean.sh +++ b/mkclean.sh @@ -5,4 +5,6 @@ rm -rf debian/tmp rm -f debian/files rm -f htdocs/js/bootstrap-native-v4.min.js rm -f htdocs/css/bootstrap.min.css +rm -f htdocs/library +rm -f htdocs/pics find ./ -name \*~ -delete diff --git a/mkdebug.sh b/mkdebug.sh index f46b39a..9b8fa67 100755 --- a/mkdebug.sh +++ b/mkdebug.sh @@ -1,8 +1,20 @@ #/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/ +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 cd debug cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_BUILD_TYPE=DEBUG ..