-
-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
34 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/bin/bash | ||
|
||
help2man \ | ||
-n "Frame stack sampler for CPython" \ | ||
-i doc/examples.troff \ | ||
src/austin > src/austin.1 | ||
|
||
VERSION=$(cat src/austin.h | sed -r -n "s/^#define VERSION[ ]+\"([0-9]+[.][0-9]+).*\"/\1/p") | ||
|
||
# Update the version in the SVG file | ||
if [[ $(uname) == "Darwin" ]]; then | ||
sed -E -i '' "s/for version [0-9]+[.][0-9]+/for version $VERSION/g" "doc/cheatsheet.svg" | ||
else | ||
sed -i "s/for version [0-9]+[.][0-9]+/for version $VERSION/g" "doc/cheatsheet.svg" | ||
fi | ||
|
||
inkscape \ | ||
--export-type="png" \ | ||
--export-filename="doc/cheatsheet.png" \ | ||
--export-dpi=192 \ | ||
doc/cheatsheet.svg | ||
|
||
inkscape \ | ||
--export-type="pdf" \ | ||
--export-filename="doc/cheatsheet.pdf" \ | ||
doc/cheatsheet.svg |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters