Skip to content

Commit ff630fe

Browse files
committed
add version to manpage
1 parent a5ea6a1 commit ff630fe

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

docs/Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
ARGPARSE_BASEARGS=--author 'Sarah Hoffmann' --author-email 'lonvia@denofr.de' --project-name pyosmium --url https://github.com/osmcode/pyosmium/
2+
PYOSMIUM_VERSION=$(shell python3 -c 'import osmium.version;print(osmium.version.pyosmium_release)' | tail -n 1)
23

34
man:
45
mkdir -p man
5-
argparse-manpage --module osmium.tools.pyosmium_get_changes --function get_arg_parser ${ARGPARSE_BASEARGS} --output man/pyosmium-get-changes.1
6-
argparse-manpage --module osmium.tools.pyosmium_up_to_date --function get_arg_parser ${ARGPARSE_BASEARGS} --output man/pyosmium-up-to-date.1
6+
argparse-manpage --module osmium.tools.pyosmium_get_changes --version '${PYOSMIUM_VERSION}' --function get_arg_parser ${ARGPARSE_BASEARGS} --output man/pyosmium-get-changes.1
7+
argparse-manpage --module osmium.tools.pyosmium_up_to_date --version '${PYOSMIUM_VERSION}' --function get_arg_parser ${ARGPARSE_BASEARGS} --output man/pyosmium-up-to-date.1
78

89
.PHONY: man

0 commit comments

Comments
 (0)