Skip to content

Commit

Permalink
Simplify script to build the man page
Browse files Browse the repository at this point in the history
Use pg_activity --version, instead of setup.py which apparently no
longer works.

Use sh, instead of bash which is not needed.
  • Loading branch information
dlax committed May 15, 2023
1 parent b72f624 commit 16ad69e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions docs/man/build-man.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash
#!/bin/sh

version=$(python3 ../../setup.py --version)

pod2man -r "pg_activity ${version}" -d `date +%Y-%m-%d` -c "Command line tool for PostgreSQL server activity monitoring." pg_activity.pod > pg_activity.1;
pod2man \
-r "$(pg_activity --version)" \
-d "$(date +%Y-%m-%d)" \
-c "Command line tool for PostgreSQL server activity monitoring." \
pg_activity.pod > pg_activity.1

0 comments on commit 16ad69e

Please sign in to comment.