-
Notifications
You must be signed in to change notification settings - Fork 299
/
genbook.sh
executable file
·52 lines (33 loc) · 1021 Bytes
/
genbook.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
42
43
44
45
46
47
48
49
50
51
52
#!/usr/bin/env bash
# This shell scripts generates the top-level Markdown structure of the
# Snabb lwAFTR manual.
#
# The authors list is automatically generated from Git history,
# ordered from most to least commits.
# Script based on src/doc/genbook.sh
lwaftr_app=../
cat <<EOF
% Snabb lwAFTR Manual
% $(git log --pretty="%an" $lwaftr_app | \
grep -v -e '^root$' | \
sort | uniq -c | sort -nr | sed 's/^[0-9 ]*//' | \
awk 'BEGIN { first=1; }
(NF >= 2) { if (first) { first=0 } else { printf("; ") };
printf("%s", $0) }
END { print("") }')
% Version $(git log -n1 --format="format:%h, %ad%n")
$(cat README.md)
$(cat running.md)
$(cat bindingtable.md)
$(cat configuration.md)
$(cat benchmarking.md)
$(cat continuous-integration.md)
$(cat performance.md)
$(cat filters-performance.md)
$(cat virtualization.md)
$(cat rfccompliance.md)
$(cat troubleshooting.md)
$(cat counters.md)
$(cat breaking_changes.md)
$(cat ndp.md)
EOF