#!/bin/bash
set -e

./configure --prefix=/usr --bindir=/bin &&

make &&
make html &&

make -j1 install &&

install -d -m755           /usr/share/doc/sed-"${VERSION}" &&
install -m644 doc/sed.html /usr/share/doc/sed-"${VERSION}"