#!/bin/bash # ============================================================================ # DarkForge Linux — Phase 0, Chapter 7: Texinfo (Chroot) # ============================================================================ # Purpose: Build texinfo (documentation tools). Provides makeinfo which # is needed by many GNU packages to process their documentation. # Inputs: /sources/texinfo-7.3.tar.xz # Outputs: makeinfo, info, install-info in /usr/bin/ # Assumes: Running inside chroot # Ref: LFS 13.0 §7.11 # ============================================================================ set -euo pipefail PACKAGE="texinfo" VERSION="7.3" echo "=== Building ${PACKAGE}-${VERSION} (Chroot) ===" cd /sources tar -xf "${PACKAGE}-${VERSION}.tar.xz" cd "${PACKAGE}-${VERSION}" ./configure --prefix=/usr make make install cd /sources rm -rf "${PACKAGE}-${VERSION}" echo "=== ${PACKAGE}-${VERSION} complete ==="