build.sh 404 B

12345678910111213141516171819
  1. #!/bin/bash
  2. set -e
  3. # With simpleBuildEnvironment flag, we're already in build directory
  4. # which is a copy of the source tree
  5. build_dir=$1
  6. # Change to the bzip2 source directory
  7. cd sources/bzip2-1.0.8
  8. # Build bzip2 using make
  9. echo "Building bzip2..."
  10. make -f Makefile -j$(nproc)
  11. # Run tests to ensure the build is working
  12. echo "Running tests..."
  13. make -f Makefile test
  14. echo "Build and tests complete."