File tree 6 files changed +34
-12
lines changed
6 files changed +34
-12
lines changed Original file line number Diff line number Diff line change 10
10
jobs :
11
11
check-manpage :
12
12
runs-on : ubuntu-20.04
13
- name : Check manpage
13
+ name : Check docs
14
14
steps :
15
15
- uses : actions/checkout@v3
16
16
17
17
- name : Install build dependencies
18
18
run : |
19
+ sudo add-apt-repository -y universe
20
+ sudo add-apt-repository -y ppa:inkscape.dev/stable
19
21
sudo apt-get update
20
- sudo apt-get -y install libunwind-dev binutils-dev libiberty-dev help2man
22
+ sudo apt-get -y install libunwind-dev binutils-dev libiberty-dev help2man inkscape
21
23
22
24
- name : Compile Austin
23
25
run : |
24
26
autoreconf --install
25
27
./configure
26
28
make
27
29
28
- - name : Generate manpage
29
- run : bash doc/genman .sh
30
+ - name : Generate docs
31
+ run : bash doc/gen .sh
30
32
31
- - name : Check manpage
33
+ - name : Check docs
32
34
run : git diff -I".* DO NOT MODIFY.*" -I"[.]TH AUSTIN.*" --exit-code src/austin.1
33
35
34
36
cppcheck-linux :
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ help2man \
4
+ -n " Frame stack sampler for CPython" \
5
+ -i doc/examples.troff \
6
+ src/austin > src/austin.1
7
+
8
+ VERSION=$( cat src/austin.h | sed -r -n " s/^#define VERSION[ ]+\" ([0-9]+[.][0-9]+).*\" /\1/p" )
9
+
10
+ # Update the version in the SVG file
11
+ if [[ $( uname) == " Darwin" ]]; then
12
+ sed -E -i ' ' " s/for version [0-9]+[.][0-9]+/for version $VERSION /g" " doc/cheatsheet.svg"
13
+ else
14
+ sed -i " s/for version [0-9]+[.][0-9]+/for version $VERSION /g" " doc/cheatsheet.svg"
15
+ fi
16
+
17
+ inkscape \
18
+ --export-type=" png" \
19
+ --export-filename=" doc/cheatsheet.png" \
20
+ --export-dpi=192 \
21
+ doc/cheatsheet.svg
22
+
23
+ inkscape \
24
+ --export-type=" pdf" \
25
+ --export-filename=" doc/cheatsheet.pdf" \
26
+ doc/cheatsheet.svg
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.3.
2
- .TH AUSTIN "1" "February 2024" "austin 3.7.0" "User Commands"
2
+ .TH AUSTIN "1" "October 2024" "austin 3.7.0" "User Commands"
3
3
.SH NAME
4
4
austin \- Frame stack sampler for CPython
5
5
.SH SYNOPSIS
You can’t perform that action at this time.
0 commit comments