acquire.sh 309 B

1234567891011121314151617
  1. #!/bin/bash
  2. set -e
  3. # Create sources directory
  4. mkdir -p sources
  5. # Download zlib source archive
  6. cd sources
  7. wget -O zlib-1.3.1.tar.gz https://www.zlib.net/zlib-1.3.1.tar.gz
  8. # Extract the source archive
  9. tar -xzf zlib-1.3.1.tar.gz
  10. # Clean up the archive
  11. rm zlib-1.3.1.tar.gz
  12. echo "Source acquisition complete"