Expose all 8 voices
[zyn.git] / install_lv2.sh
blob88aed85a6f22c0d121fa84e27123b5a0bd54bc8f
1 #!/bin/sh
3 # Install lv2 plugin bundle
6 if test -z "${LV2_INSTALL_PATH}"
7 then
8 if test "${LV2_PATH}"
9 then
10 echo "Trying to deduce install location from LV2_PATH contents..."
11 OLDIFS=${IFS}
12 IFS=:
13 for DEST in ${LV2_PATH}
15 if test -d "${DEST}" -a -w "${DEST}"
16 then
17 echo "${DEST} looks good."
18 LV2_INSTALL_PATH=${DEST}
19 break
20 else
21 echo "${DEST} is not writable directory..."
23 done
24 #echo "${LV2_PATH} is directory. Installing there..."
25 #LV2_INSTALL_PATH=${LV2_PATH}
26 IFS=${OLDIFS}
27 else
28 echo "LV2_PATH is not set, not trying to auto-deduce install location"
32 if test -z "${LV2_INSTALL_PATH}"
33 then
34 echo "Please specify where to install by supplying LV2_INSTALL_PATH"
35 exit 1
38 echo "Installing ${1} to ${LV2_INSTALL_PATH}"
39 cp -R ${1} ${LV2_INSTALL_PATH}
41 exit $?