1
0
mirror of https://blitiri.com.ar/repos/chasquid synced 2025-12-17 14:37:02 +00:00
Files
go-chasquid-smtp/docs/man/generate.sh
Alberto Bertogli 24af22ac35 docs: Add man pages
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.
2018-04-04 21:26:02 +01:00

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