diff --git a/mkdebug.sh b/mkdebug.sh index a33fb07..a20f8b4 100755 --- a/mkdebug.sh +++ b/mkdebug.sh @@ -20,7 +20,7 @@ fi echo "Linking pics directory" [ -e $PWD/htdocs/pics ] || ln -s /var/lib/mympd/pics htdocs/ -[ -d debug ] || mkdir debug +install -d debug cd debug cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_BUILD_TYPE=DEBUG .. make VERBOSE=1 diff --git a/mkrelease.sh b/mkrelease.sh index 6da14ba..8dc2c0d 100755 --- a/mkrelease.sh +++ b/mkrelease.sh @@ -9,7 +9,10 @@ function minify { DST="$3" ERROR="1" - [ "$DST" -nt "$SRC" ] && return + if [ "$DST" -nt "$SRC" ] + then + return + fi if [ "$TYPE" == "html" ] then @@ -54,7 +57,7 @@ minify html htdocs/index.html dist/htdocs/index.html minify html htdocs/player.html dist/htdocs/player.html echo "Compiling and installing mympd" -[ -d release ] || mkdir release +install -d release cd release cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_BUILD_TYPE=RELEASE .. make