Skip to content

Commit bd62f45

Browse files
committed
Add: scripts: option to skip checking and installing JACK.
1 parent bd1a311 commit bd62f45

5 files changed

Lines changed: 34 additions & 8 deletions

File tree

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@ The scripts include a help screen, to display it, run:
4444
<scriptname>.sh -h
4545
```
4646

47+
Installation of JACK can be skipped so that the scripts are more useful to more distributions and to avoid overwriting existing installations, run:
48+
49+
```
50+
<scriptname>.sh -j
51+
```
52+
4753
---
4854

4955
## Requirements

install_rack_fedora.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ rackVersion=2.6.3
44
scriptVersion=2.3
55
SUDO=''
66
originalFolder=$(pwd)
7+
wantJack=1
78

89
# These setup the checker and installer commands for different distros.
910
checkCommand="dnf list installed"
@@ -45,15 +46,17 @@ function printHelp() {
4546
echo "Usage: $0 [-v <version> | -h]"
4647
echo -e "\t-v <version> Try to install specific Rack free version."
4748
echo -e "\t-h Show this help screen."
49+
echo -e "\t-j Skip installation of JACK."
4850
echo
4951
exit 2
5052
}
5153

52-
while getopts ':v:h' opt
54+
while getopts ':v:hj' opt
5355
do
5456
case $opt in
5557
v) rackVersion=$OPTARG;;
5658
h) printHelp;;
59+
j) wantJack=0;;
5760
\?) echo "ERROR: Invalid option"
5861
exit 1;;
5962
esac
@@ -81,7 +84,9 @@ checkAndInstall unzip
8184

8285
checkAndInstall zenity
8386

84-
checkAndInstall jack-audio-connection-kit
87+
if [ $wantJack != 0 ]; then
88+
checkAndInstall jack-audio-connection-kit
89+
fi
8590

8691
echo "Getting VCV Rack ${rackVersion}..."
8792
wget2 https://vcvrack.com/downloads/RackFree-${rackVersion}-lin-x64.zip &> /dev/null

install_rack_manjaro.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ rackVersion=2.6.3
44
scriptVersion=2.3
55
SUDO=''
66
originalFolder=$(pwd)
7+
wantJack=1
78

89
# These setup the checker and installer commands for different distros.
910
checkCommand="pacman -Q"
@@ -45,15 +46,17 @@ function printHelp() {
4546
echo "Usage: $0 [-v <version> | -h]"
4647
echo -e "\t-v <version> Try to install specific Rack free version."
4748
echo -e "\t-h Show this help screen."
49+
echo -e "\t-j Skip installation of JACK."
4850
echo
4951
exit 2
5052
}
5153

52-
while getopts ':v:h' opt
54+
while getopts ':v:hj' opt
5355
do
5456
case $opt in
5557
v) rackVersion=$OPTARG;;
5658
h) printHelp;;
59+
j) wantJack=0;;
5760
\?) echo "ERROR: Invalid option"
5861
exit 1;;
5962
esac
@@ -78,7 +81,9 @@ checkAndInstall unzip
7881

7982
checkAndInstall zenity
8083

81-
checkAndInstall jack2
84+
if [ $wantJack != 0 ]; then
85+
checkAndInstall jack2
86+
fi
8287

8388
echo "Getting VCV Rack Free ${rackVersion}..."
8489
wget https://vcvrack.com/downloads/RackFree-${rackVersion}-lin-x64.zip &> /dev/null

install_rack_mint.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ rackVersion=2.6.3
44
scriptVersion=2.3
55
SUDO=''
66
originalFolder=$(pwd)
7+
wantJack=1
78

89
# These setup the checker and installer commands for different distros.
910
checkCommand="dpkg -s"
@@ -45,15 +46,17 @@ function printHelp() {
4546
echo "Usage: $0 [-v <version> | -h]"
4647
echo -e "\t-v <version> Try to install specific Rack free version."
4748
echo -e "\t-h Show this help screen."
49+
echo -e "\t-j Skip installation of JACK."
4850
echo
4951
exit 2
5052
}
5153

52-
while getopts ':v:h' opt
54+
while getopts ':v:hj' opt
5355
do
5456
case $opt in
5557
v) rackVersion=$OPTARG;;
5658
h) printHelp;;
59+
j) wantJack=0;;
5760
\?) echo "ERROR: Invalid option"
5861
exit 1;;
5962
esac
@@ -81,7 +84,9 @@ checkAndInstall zenity
8184
# Don't overwrite jack in certain Ubuntu versions.
8285
${checkCommand} libjack-jackd2-0 &> /dev/null
8386
if [ $? != 0 ]; then
84-
checkAndInstall libjack0
87+
if [ $wantJack != 0 ]; then
88+
checkAndInstall libjack0
89+
fi
8590
fi
8691

8792
echo "Getting VCV Rack Free ${rackVersion}..."

install_rack_ubuntu.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ rackVersion=2.6.3
44
scriptVersion=2.3
55
SUDO=''
66
originalFolder=$(pwd)
7+
wantJack=1
78

89
# These setup the checker and installer commands for different distros.
910
checkCommand="dpkg -s"
@@ -45,15 +46,17 @@ function printHelp() {
4546
echo "Usage: $0 [-v <version> | -h]"
4647
echo -e "\t-v <version> Try to install specific Rack free version."
4748
echo -e "\t-h Show this help screen."
49+
echo -e "\t-j Skip installation of JACK."
4850
echo
4951
exit 2
5052
}
5153

52-
while getopts ':v:h' opt
54+
while getopts ':v:hj' opt
5355
do
5456
case $opt in
5557
v) rackVersion=$OPTARG;;
5658
h) printHelp;;
59+
j) wantJack=0;;
5760
\?) echo "ERROR: Invalid option"
5861
exit 1;;
5962
esac
@@ -81,7 +84,9 @@ checkAndInstall zenity
8184
# Don't overwrite jack in certain Ubuntu versions.
8285
${checkCommand} libjack-jackd2-0 &> /dev/null
8386
if [ $? != 0 ]; then
84-
checkAndInstall libjack0
87+
if [ $wantJack != 0 ]; then
88+
checkAndInstall libjack0
89+
fi
8590
fi
8691

8792

0 commit comments

Comments
 (0)