File tree 2 files changed +24
-1
lines changed
2 files changed +24
-1
lines changed Original file line number Diff line number Diff line change 24
24
uses : actions/checkout@v4
25
25
with :
26
26
repository : devnull-cz/unix-linux-prog-in-c-src
27
- path : src
27
+ path : unix-linux-prog-in-c- src
28
28
- name : Install pre-requisites for LaTeX
29
29
working-directory : master
30
30
run : ./dev/install-latex.sh
40
40
- name : Compile
41
41
working-directory : master
42
42
run : make slides notes
43
+ - name : Check example links
44
+ working-directory : master
45
+ run : ./dev/check-examples.sh
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ #
3
+ # Verify the \example{} are all valid links to the source repository.
4
+ #
5
+ # Assumes the source repository is checked about to the '../unix-linux-prog-in-c-src' directory
6
+ # and also that the TeX documents were already processed by m4.
7
+ #
8
+ # Lastly, it assumes that the \example{} does not span multiple lines.
9
+ #
10
+
11
+ for m4file in * .m4.tex; do
12
+ echo " ### $m4file "
13
+ cat " $m4file " | grep -o ' \\example{[[:alnum:]\/\._\-]\+}' | \
14
+ sort -u | sed -e ' s/^\\example{//' -e ' s/}$//' | while read example; do
15
+ if [[ ! -f ../unix-linux-prog-in-c-src/$example ]]; then
16
+ echo " example $example is bad link"
17
+ exit 1
18
+ fi
19
+ done
20
+ done
You can’t perform that action at this time.
0 commit comments