The Sed package contains a stream editor.
Prepare Sed for compilation:
./configure --prefix=/usr --bindir=/bin --htmldir=/usr/share/doc/sed-4.2.2
The meaning of the new configure option:
--htmldir
This sets the installation directory for the HTML documentation.
Compile the package and generate the HTML documentation:
make make html
To test the results, issue:
make check
Install the package and its documentation to a temporary directory:
make install DESTDIR=$(pwd)/debian/tmp make -C doc install-html DESTDIR=$(pwd)/debian/tmp
Create the package archive:
buildpkg
Install the package:
dpkg -i ../sed_4.2.2_*.deb
Remove the previous version of the package:
dpkg --purge sed-pass1