39 lines
1.1 KiB
Bash
Executable File
39 lines
1.1 KiB
Bash
Executable File
#!/bin/bash
|
|
# ============================================================================
|
|
# DarkForge Linux — Phase 3, Chapter 8: texinfo
|
|
# ============================================================================
|
|
# Purpose: Build texinfo (GNU documentation format tools: makeinfo, install-info).
|
|
# Used for processing .info files and generating documentation.
|
|
# Inputs: /sources/texinfo-7.2.tar.xz
|
|
# Outputs: texinfo utilities in /usr/bin/, libraries in /usr/lib/
|
|
# Assumes: Running inside chroot
|
|
# Ref: LFS 13.0 §8.74
|
|
# ============================================================================
|
|
|
|
set -euo pipefail
|
|
|
|
source /sources/toolchain-scripts/100-chroot-env.sh
|
|
|
|
PACKAGE="texinfo"
|
|
VERSION="7.2"
|
|
|
|
echo "=== Building ${PACKAGE}-${VERSION} ==="
|
|
|
|
cd /sources
|
|
tar -xf "${PACKAGE}-${VERSION}.tar.xz"
|
|
cd "${PACKAGE}-${VERSION}"
|
|
|
|
./configure --prefix=/usr
|
|
|
|
make
|
|
# Optional: run tests
|
|
# make check || true
|
|
make install
|
|
|
|
# Optional: install the Info documentation (build from source)
|
|
# make TEXMF=/usr/share/texmf install-tex
|
|
|
|
cd /sources
|
|
rm -rf "${PACKAGE}-${VERSION}"
|
|
echo "=== ${PACKAGE}-${VERSION} complete ==="
|