We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c15529d commit 6721f77Copy full SHA for 6721f77
run-pre-checks.sh
@@ -17,6 +17,21 @@ if [[ $result ]]; then
17
ec=1
18
fi
19
20
+# make sure all chapter in HPC intro have a reference in title.tex
21
+chapter_check_fails=0;
22
+for chapter in $(grep "\label{ch:" intro-HPC/ch*tex | cut -f2- -d: | cut -c7-);
23
+do
24
+ cnt=$(grep $chapter intro-HPC/title.tex|wc -l);
25
+ if [[ $cnt -ne 1 ]]; then
26
+ echo $chapter;
27
+ ((chapter_check_fails+=1));
28
+ fi;
29
+done
30
+if [[ $chapter_check_fails -ne 0 ]]; then
31
+ echo "Chapter label for one or more chapters not found in title.tex (see above)!"
32
+ ec=$chapter_check_fails
33
+fi
34
+
35
if [[ "$ec" -eq 0 ]]; then
36
echo "All checks passed"
37
0 commit comments