acquire.sh 441 B

1234567891011121314151617181920
  1. #!/bin/bash
  2. set -e
  3. # Create sources directory if it doesn't exist
  4. mkdir -p sources
  5. # Download the source archive
  6. echo "Downloading bzip2 source..."
  7. wget -O sources/bzip2-1.0.8.tar.gz https://www.sourceware.org/pub/bzip2/bzip2-1.0.8.tar.gz
  8. # Extract the archive
  9. echo "Extracting bzip2 source..."
  10. cd sources
  11. tar -xzf bzip2-1.0.8.tar.gz
  12. # Clean up the archive
  13. echo "Cleaning up..."
  14. rm bzip2-1.0.8.tar.gz
  15. echo "Source acquisition complete."