X-Git-Url: https://git.kaliko.me/?a=blobdiff_plain;f=vinstall.sh;h=143e8850a3383917fa4409d25682fb83ba99efd2;hb=refs%2Ftags%2Fmpd-sima%2F0.12.0pr2;hp=e249ae8db3588c09bdee2ea9af361fdfe70d1cd0;hpb=19825fb8eeef286e40d12e265d846798e7d7d73d;p=mpd-sima.git diff --git a/vinstall.sh b/vinstall.sh index e249ae8..143e885 100755 --- a/vinstall.sh +++ b/vinstall.sh @@ -13,7 +13,7 @@ DEBUG=${DEBUG:-"0"} # Set to 1 in order to enable DEBUG message. ## Only error message will be printed with DEBUG="0" -PY3=${PY3:-$(which python3.3)} +PY3=${PY3:-$(which python3)} # Test virtualenv presence [ -x "$(which virtualenv)" ] || { echo "Cannot find virtualenv executable!"; exit 1; } @@ -37,19 +37,21 @@ PIP_OPTIONS="" pip $PIP_OPTIONS install --pre python-musicpd || exit 1 +echo Installing mpd-siuma +$(dirname $0)/setup.py --quiet install || exit 1 + deactivate -SIMA_LAUNCHER=$(readlink -f $(dirname $0))/launch -SIMA_VLAUNCHER=$(readlink -f $(dirname $0))/vlaunch -[ -x "$SIMA_LAUNCHER" ] || { echo "$SIMA_LAUNCHER not available"; exit 1; } +SIMA_LAUNCHER=mpd-sima +SIMA_VLAUNCHER=$(readlink -f $(dirname $0))/vmpd-sima cat << EOF > $SIMA_VLAUNCHER #!/bin/sh . $INSTALL_DIR/venv/bin/activate -python $SIMA_LAUNCHER "\$@" +$SIMA_LAUNCHER "\$@" EOF chmod +x $SIMA_VLAUNCHER -echo +echo # vim: fileencoding=utf8