convert from pod to md, pandoc

This commit is contained in:
tengel 2024-03-20 09:32:37 -05:00
parent 201200a04e
commit dcc5cebd32
6 changed files with 281 additions and 410 deletions

View file

@ -1,6 +1,7 @@
# petrified - a bash client to update dynamic DNS at freedns.afraid.org
VERSION := $(shell grep '^\#\# Version:' petrified | cut -d' ' -f3)
VERS := $(shell grep '^## Version:' petrified | cut -d' ' -f3)
DATE := $(shell date +"%Y-%m-%d")
PREFIX ?= /usr/local
BINPREFIX ?= $(PREFIX)/bin
@ -17,9 +18,12 @@ MANPAGES = \
all: doc build-systemd
doc: $(MANPAGES)
petrified.1: README.pod
pod2man -s 1 -c "Petrified Manual" -n "PETRIFIED" \
-r "petrified $(VERSION)" $< $@
petrified.1:
@pandoc -s -f markdown-smart -t man \
-M adjusting=l -M section=1 -M hyphenate=false \
-M title="PETRIFIED" -M date="${DATE}" \
-M header="Petrified Manual" -M footer="petrified ${VERS}" \
-o petrified.1 README.md
install: all install-main install-doc
uninstall: uninstall-main uninstall-doc