equal
deleted
inserted
replaced
|
1 #!/bin/bash |
|
2 set -euo pipefail |
|
3 |
|
4 # Dependencies for the testfile |
|
5 python -m pip install hg-docgraph |
|
6 |
|
7 mkdir -p graphs output |
|
8 |
|
9 CMD_NOT_FOUND=0 |
|
10 check_command() { |
|
11 cmd=$1 |
|
12 if ! which "$cmd" >/dev/null 2>&1; then |
|
13 echo "Error: command '$cmd' not found in \$PATH" |
|
14 echo "Please install '$cmd'" |
|
15 CMD_NOT_FOUND=1 |
|
16 else |
|
17 echo "$cmd command was found" |
|
18 fi |
|
19 } |
|
20 |
|
21 check_command aha |
|
22 |
|
23 if [ "$CMD_NOT_FOUND" -ne "0" ]; then |
|
24 exit 1 |
|
25 fi |
|
26 |
|
27 # Prepare directory for repositories generated by the training.t file |
|
28 mkdir -p base-repos |
|
29 |
|
30 rm -Rf base-repos/* |