6.33. Gawk-3.1.7

The Gawk package contains programs for manipulating text files.

6.33.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.33.2. Installation of Gawk

Prepare Gawk for compilation:

./configure --build=${CLFS_HOST} --host=${CLFS_TARGET} \
    --prefix=/usr --libexecdir=/usr/lib \
    --disable-libsigsegv

Compile the package:

make

Install the package:

make DESTDIR=${CLFS} install

6.33.3. Contents of Gawk

Installed programs: awk (link to gawk), gawk, gawk-3.1.7, grcat, igawk, pgawk, pgawk-3.1.7, and pwcat

Short Descriptions

awk

A link to gawk

gawk

A program for manipulating text files; it is the GNU implementation of awk

gawk-3.1.7

A hard link to gawk

grcat

Dumps the group database /etc/group

igawk

Gives gawk the ability to include files

pgawk

The profiling version of gawk

pgawk-3.1.7

Hard link to pgawk

pwcat

Dumps the password database /etc/passwd