#!/bin/sh -e
patch -p1 < errors.patch
xmkmf -a
make
install -Dm755 xless "$1/usr/bin/xless"
install -Dm755 xless.man "$1/usr/share/man/man1/xless.1"