#!/bin/bash set -e # Create sources directory mkdir -p sources # Download bzip2 source echo "Downloading bzip2-1.0.8 source..." wget -O sources/bzip2-1.0.8.tar.gz https://www.sourceware.org/pub/bzip2/bzip2-1.0.8.tar.gz # Download bzip2 documentation patch echo "Downloading bzip2 documentation patch..." wget -O sources/bzip2-1.0.8-install_docs-1.patch https://www.linuxfromscratch.org/patches/lfs/12.4/bzip2-1.0.8-install_docs-1.patch # Extract source code echo "Extracting bzip2 source..." cd sources tar -xzf bzip2-1.0.8.tar.gz # Copy patch to source directory cp bzip2-1.0.8-install_docs-1.patch bzip2-1.0.8/ # Clean up rm bzip2-1.0.8.tar.gz cd .. echo "Source acquisition complete."