#!/bin/sh

TMP=$(mktemp)

man -Tdvi $1 > $TMP.dvi
dvipdf $TMP.dvi $1.pdf