#!/bin/sh if command -v man >/dev/null 2>&1 && command -v ps2pdf >/dev/null 2>&1; then man -t "${1}" | ps2pdf -sPAPERSIZE="a4" -sOutputFile="${1}.pdf" - fi