mirror of
https://blitiri.com.ar/repos/chasquid
synced 2025-12-17 14:37:02 +00:00
This patch adds man pages for chasquid's main commands and configuration. They are generated using pod2man (commonly used for this, and included with perl in most distributions). The generated man pages are included to avoid introducing a dependency for such simple task, similar to how we handle protocol buffer generated files.
20 lines
324 B
Bash
Executable File
20 lines
324 B
Bash
Executable File
#!/bin/bash
|
|
#
|
|
# Convert pod files to manual pages, using pod2man.
|
|
#
|
|
# Assumes files are named like:
|
|
# <name>.<section>.pod
|
|
|
|
set -e
|
|
|
|
for IN in *.pod; do
|
|
OUT=$( basename $IN .pod )
|
|
SECTION=${OUT##*.}
|
|
NAME=${OUT%.*}
|
|
|
|
podchecker $IN
|
|
pod2man --section=$SECTION --name=$NAME \
|
|
--release "" --center "" \
|
|
$IN $OUT
|
|
done
|