From fcf8d0c0246b353f255eb5173cd8cd3748f8da3b Mon Sep 17 00:00:00 2001 From: Azat Bahawi Date: Thu, 1 Jan 1970 03:00:00 +0300 Subject: chore: init --- man2pdf | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 man2pdf (limited to 'man2pdf') diff --git a/man2pdf b/man2pdf new file mode 100755 index 0000000..b8d8bd7 --- /dev/null +++ b/man2pdf @@ -0,0 +1,6 @@ +#!/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 -- cgit 1.4.1