#!/usr/bin/env bash
2
3 if [ "$1" = '-h' ]
4 then
5     usage_all "$0"
6
7     exit 0
8 fi
9
10 if ret="$(command -p man -t "$1")"
11 then
12     echo "${ret}" | ps2pdf -sPAPERSIZE=a4 -sOutputFile="$1".pdf - && \
13         echo "man2pdf: \"$1.pdf\" -- done" >&2
14  fi