Skip to content

Commit bd1a311

Browse files
committed
Add: scripts: help screen.
1 parent 8820b64 commit bd1a311

5 files changed

Lines changed: 98 additions & 36 deletions

File tree

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@ To use the Manjaro script, download it; put it in your home directory; open a te
3838

3939
Usage for other distros is similar: just pick the right script.
4040

41+
The scripts include a help screen, to display it, run:
42+
43+
```
44+
<scriptname>.sh -h
45+
```
46+
4147
---
4248

4349
## Requirements

install_rack_fedora.sh

Lines changed: 23 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env bash
22

33
rackVersion=2.6.3
4-
scriptVersion=2.2
4+
scriptVersion=2.3
55
SUDO=''
66
originalFolder=$(pwd)
77

@@ -30,22 +30,36 @@ function checkAndInstall() {
3030
fi
3131
}
3232

33-
while getopts ':v:' opt
33+
function printHeader() {
34+
echo "VCV Rack Free installer for Manjaro Copyright (C) 2025"
35+
echo "Bloodbat / La Serpiente y la Rosa Producciones."
36+
echo "This program comes with ABSOLUTELY NO WARRANTY."
37+
echo "This is free software, and you are welcome to redistribute it."
38+
echo
39+
echo "Script version ${scriptVersion}"
40+
echo
41+
}
42+
43+
function printHelp() {
44+
printHeader
45+
echo "Usage: $0 [-v <version> | -h]"
46+
echo -e "\t-v <version> Try to install specific Rack free version."
47+
echo -e "\t-h Show this help screen."
48+
echo
49+
exit 2
50+
}
51+
52+
while getopts ':v:h' opt
3453
do
3554
case $opt in
3655
v) rackVersion=$OPTARG;;
56+
h) printHelp;;
3757
\?) echo "ERROR: Invalid option"
3858
exit 1;;
3959
esac
4060
done
4161

42-
echo "VCV Rack Free installer for Fedora Linux Copyright (C) 2025"
43-
echo "Bloodbat / La Serpiente y la Rosa Producciones."
44-
echo "This program comes with ABSOLUTELY NO WARRANTY."
45-
echo "This is free software, and you are welcome to redistribute it."
46-
echo
47-
echo "Script version ${scriptVersion}"
48-
echo
62+
printHeader
4963
echo "Trying to install VCV Rack Free ${rackVersion}..."
5064
echo
5165

install_rack_manjaro.sh

Lines changed: 23 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env bash
22

33
rackVersion=2.6.3
4-
scriptVersion=2.2
4+
scriptVersion=2.3
55
SUDO=''
66
originalFolder=$(pwd)
77

@@ -30,22 +30,36 @@ function checkAndInstall() {
3030
fi
3131
}
3232

33-
while getopts ':v:' opt
33+
function printHeader() {
34+
echo "VCV Rack Free installer for Manjaro Copyright (C) 2025"
35+
echo "Bloodbat / La Serpiente y la Rosa Producciones."
36+
echo "This program comes with ABSOLUTELY NO WARRANTY."
37+
echo "This is free software, and you are welcome to redistribute it."
38+
echo
39+
echo "Script version ${scriptVersion}"
40+
echo
41+
}
42+
43+
function printHelp() {
44+
printHeader
45+
echo "Usage: $0 [-v <version> | -h]"
46+
echo -e "\t-v <version> Try to install specific Rack free version."
47+
echo -e "\t-h Show this help screen."
48+
echo
49+
exit 2
50+
}
51+
52+
while getopts ':v:h' opt
3453
do
3554
case $opt in
3655
v) rackVersion=$OPTARG;;
56+
h) printHelp;;
3757
\?) echo "ERROR: Invalid option"
3858
exit 1;;
3959
esac
4060
done
4161

42-
echo "VCV Rack Free installer for Manjaro Copyright (C) 2025"
43-
echo "Bloodbat / La Serpiente y la Rosa Producciones."
44-
echo "This program comes with ABSOLUTELY NO WARRANTY."
45-
echo "This is free software, and you are welcome to redistribute it."
46-
echo
47-
echo "Script version ${scriptVersion}"
48-
echo
62+
printHeader
4963
echo "Trying to install VCV Rack Free ${rackVersion}..."
5064
echo
5165

install_rack_mint.sh

Lines changed: 23 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env bash
22

33
rackVersion=2.6.3
4-
scriptVersion=2.2
4+
scriptVersion=2.3
55
SUDO=''
66
originalFolder=$(pwd)
77

@@ -30,22 +30,36 @@ function checkAndInstall() {
3030
fi
3131
}
3232

33-
while getopts ':v:' opt
33+
function printHeader() {
34+
echo "VCV Rack Free installer for Manjaro Copyright (C) 2025"
35+
echo "Bloodbat / La Serpiente y la Rosa Producciones."
36+
echo "This program comes with ABSOLUTELY NO WARRANTY."
37+
echo "This is free software, and you are welcome to redistribute it."
38+
echo
39+
echo "Script version ${scriptVersion}"
40+
echo
41+
}
42+
43+
function printHelp() {
44+
printHeader
45+
echo "Usage: $0 [-v <version> | -h]"
46+
echo -e "\t-v <version> Try to install specific Rack free version."
47+
echo -e "\t-h Show this help screen."
48+
echo
49+
exit 2
50+
}
51+
52+
while getopts ':v:h' opt
3453
do
3554
case $opt in
3655
v) rackVersion=$OPTARG;;
56+
h) printHelp;;
3757
\?) echo "ERROR: Invalid option"
3858
exit 1;;
3959
esac
4060
done
4161

42-
echo "VCV Rack Free installer for Linux Mint Copyright (C) 2025"
43-
echo "Bloodbat / La Serpiente y la Rosa Producciones."
44-
echo "This program comes with ABSOLUTELY NO WARRANTY."
45-
echo "This is free software, and you are welcome to redistribute it."
46-
echo
47-
echo "Script version ${scriptVersion}"
48-
echo
62+
printHeader
4963
echo "Trying to install VCV Rack Free ${rackVersion}..."
5064
echo
5165

install_rack_ubuntu.sh

Lines changed: 23 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env bash
22

33
rackVersion=2.6.3
4-
scriptVersion=2.2
4+
scriptVersion=2.3
55
SUDO=''
66
originalFolder=$(pwd)
77

@@ -30,22 +30,36 @@ function checkAndInstall() {
3030
fi
3131
}
3232

33-
while getopts ':v:' opt
33+
function printHeader() {
34+
echo "VCV Rack Free installer for Manjaro Copyright (C) 2025"
35+
echo "Bloodbat / La Serpiente y la Rosa Producciones."
36+
echo "This program comes with ABSOLUTELY NO WARRANTY."
37+
echo "This is free software, and you are welcome to redistribute it."
38+
echo
39+
echo "Script version ${scriptVersion}"
40+
echo
41+
}
42+
43+
function printHelp() {
44+
printHeader
45+
echo "Usage: $0 [-v <version> | -h]"
46+
echo -e "\t-v <version> Try to install specific Rack free version."
47+
echo -e "\t-h Show this help screen."
48+
echo
49+
exit 2
50+
}
51+
52+
while getopts ':v:h' opt
3453
do
3554
case $opt in
3655
v) rackVersion=$OPTARG;;
56+
h) printHelp;;
3757
\?) echo "ERROR: Invalid option"
3858
exit 1;;
3959
esac
4060
done
4161

42-
echo "VCV Rack Free installer for Ubuntu Copyright (C) 2025"
43-
echo "Bloodbat / La Serpiente y la Rosa Producciones."
44-
echo "This program comes with ABSOLUTELY NO WARRANTY."
45-
echo "This is free software, and you are welcome to redistribute it."
46-
echo
47-
echo "Script version ${scriptVersion}"
48-
echo
62+
printHeader
4963
echo "Trying to install VCV Rack Free ${rackVersion}..."
5064
echo
5165

0 commit comments

Comments
 (0)