-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLBioProject.sh
executable file
·41 lines (37 loc) · 1.09 KB
/
LBioProject.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/sh
# Name: LBioProject.sh
# License: GPL-3.0
# Description: This bash script is the build system tool for LBioProject.
#
# Note: 1. Don't forget to modify the permission of this file by running "chmod 755 LBioProject.sh" or "chmod +x LBioProject.sh"
# 2. Make sure that Perl is already installed on the system (Version >= 5.34.0)
#
help () {
echo "[ LBioProject ]\n";
echo "LBioProject (Learn Bioinformatics Project) is a project for learning the basics of bioinformatics.\n";
echo "[ Available commands ]\n";
echo "* 'help' to show this help prompt";
echo "* 'test' to perform testing";
echo "* 'run' to run the project";
echo "* 'clean' to clean the project\n";
}
if [ $# -gt 0 ]; then
if [ $1 = "help" ]; then
help
exit 0
elif [ $1 = "run" ]; then
perl ./src/main/main.pl
elif [ $1 = "test" ]; then
perl ./src/test/test.pl
elif [ $1 = "clean" ]; then
if [ -d ./report ]; then
rm -r ./report/
fi
else
echo "[-] Invalid command: $1"
exit 0
fi
else
help
exit 1
fi