6.12. Sed-4.2.1

The Sed package contains a stream editor.

6.12.1. Environment Settings

This package requires compiler variables to be set for the target in the environment.

export CC="${CLFS_TARGET}-gcc"
export CXX="${CLFS_TARGET}-g++"
export AR="${CLFS_TARGET}-ar"
export AS="${CLFS_TARGET}-as"
export RANLIB="${CLFS_TARGET}-ranlib"
export LD="${CLFS_TARGET}-ld"
export STRIP="${CLFS_TARGET}-strip"

6.12.2. Installation of Sed

Prepare Sed for compilation:

./configure --build=${CLFS_HOST} --host=${CLFS_TARGET} \
    --prefix=/usr --bindir=/bin

Compile the package:

make

Build the HTML documentation:

make html

Install the package:

make DESTDIR=${CLFS} install

Install the HTML documentation:

make -C doc DESTDIR=${CLFS} install-html

6.12.3. Contents of Sed

Installed program: sed

Short Descriptions

sed

Filters and transforms text files in a single pass